A mortgage is a type of loan specifically used for purchasing real estate. It is a secured loan, meaning the property purchased serves as collateral for the loan. If the borrower defaults on the loan, the lender has the legal right to foreclose on the property and sell it to recover the owed amount.