The subject of this Master's thesis is a description of the legal regulation of mortgage loans in Slovenian legislation, with an emphasis on consumer mortgage loans. The introductory chapters therefore first set out the general regulation of the mortgage, as a legal institute of property law, the legal principles that shape the general legal framework, the object of the mortgage, the secured claim and the establishment of the mortgage itself. With respect to the establishment of a mortgage, particular attention is paid to the directly enforceable notarial deed, which plays an important role in concluding consumer credit agreements for real estate. A directly enforceable notarial deed, as the form in which a legal transaction is concluded for the establishment of a mortgage - an agreement for securing a monetary claim, must contain three main elements, namely determinacy of the obligation, consent of the debtor to enforceability and maturity of the claim. Further, the fourth chapter describes in more detail the legal regulation of concluding consumer credit agreements for real estate, which secures the mortgagee's claim against the debtor by establishing a mortgage on the pledged real estate. When concluding such legal transactions, it is important that the creditor makes a good judgement to whom the loan will be given, so the legal provisions prescribe the assessment of the debtor's creditworthiness and the value of the property. In addition to these mandatory assessments by the creditor, the law also provides for mandatory disclosure to consumers of the rights and obligations arising from a real estate loan agreement. Such regulation is primarily for the benefit of the consumer, which is also reflected in the manner of withdrawal from the contract and the fact that, when concluding such a credit agreement, the intervention of notary public is mandatory. Chapter five is thus intended to describe the role of a notary public in concluding credit agreements for a real estate in a notarial deed, in particular the importance of his explanatory duty in concluding legal transactions that are often of vital importance to the consumer.