To lock in a mortgage rate, you will need to work with a lender. Once you have found a mortgage rate that you are satisfied with, you can request to lock in that rate. This typically involves signing a contract or agreement with the lender, which will specify the terms and duration of the rate lock. It is important to note that some lenders may charge a fee for locking in a rate, so be sure to clarify any potential costs before proceeding.