The rate lock is an agreement between the borrower and the mortgage lender that guarantees a rate for a set period of time (typically 30, 60 or 90 days).