Code of Civil Procedure § 744
CHAPTER 3. Actions for the Recovery of Real Property, and Other Provisions Relating to Actions Concerning Real Property
A mortgage of real property shall not be deemed a conveyance, whatever its terms, so as to enable the owner of the mortgage to recover possession of the real property without a foreclosure and sale.