Mortgage law governs the legal framework surrounding the creation, transfer, and enforcement of mortgages, which are security interests in real property used to secure a loan. It involves the rights and obligations of both borrowers and lenders, including foreclosure procedures and borrower protections.