California Codes, Code of Civil Procedure - CCP, Part 2 — Of Civil Actions, Title 4 — Of the Place of Trial, Reclassification, and Coordination of Civil Actions, Chapter 1 — Place of Trial, Section 392
(a) Subject to the power of the court to transfer actions and proceedings as provided in this title, the superior court in the county where the real property that is the subject of the action, or some part thereof, is situated, is the proper court for the trial of the following actions:
(1) For the recovery of real property, or of an estate or interest therein, or for the determination in any form, of that right or interest, and for injuries to real property.
(2) For the foreclosure of all liens and mortgages on real property.
(b) In the court designated as the proper court in subdivision (a), the proper court location for trial of a proceeding for an unlawful detainer, as defined in Section 1161, is the location where the court tries that type of proceeding that is nearest or most accessible to where the real property that is the subject of the action, or some part thereof, is situated. Otherwise any location of the superior court designated as the proper court in subdivision (a) is a proper court location for the trial. The court may specify by local rule the nearest or most accessible court location where the court tries that type of case.
Notes
Sets the proper county for specified real-property recovery, interest, injury, lien, and mortgage actions as the county where all or part of the property is located, subject to transfer authority. For unlawful detainer, requires trial at the court location handling such cases that is nearest or most accessible to the property, as locally specified.
Use as reference
Lexinter.net | California Code, Code of Civil Procedure - CCP § 392 | https://laws.lexinter.net/codes/california/code-of-civil-procedure/part-2/title-4/chapter-1/section-392