A mortgage rate lock is an agreement between a borrower and a lender that allows the borrower to keep a certain interest rate on a mortgage for a specified time period.