A mortgage is a legal agreement where a lender provides funds to a borrower for the purpose of purchasing real estate, securing the loan against the property itself. If the borrower fails to make payments as agreed, the lender has the right to take possession of the property through foreclosure. Mortgages are essential for enabling individuals and businesses to acquire property while spreading out the financial burden over time.