A mortgage is a contract between two parties in which the borrower agrees to surrender the ownership to an immovable property to the lender for the purpose of security.