> For AI agents: read the machine-readable documentation index at [https://corpuslaw.us/llms.txt](https://corpuslaw.us/llms.txt) or the single-file full reference at [https://corpuslaw.us/llms-full.txt](https://corpuslaw.us/llms-full.txt).

# Cal. Code of Civil Procedure - CCP § 871.4. — Section 871.4.

- **Citation**: Cal. Code of Civil Procedure - CCP § 871.4.
- **Node Type**: section
- **Jurisdiction**: California (state)
- **Code Body**: Code of Civil Procedure - CCP (CCP)
- **Official Source**: [https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip](https://downloads.leginfo.legislature.ca.gov/pubinfo_2025.zip)
- **Canonical URL**: [https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-10/chapter-10/section-871-4](https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-10/chapter-10/section-871-4)
- **Semantic URL**: [https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-10/chapter-10/section-871-4](https://corpuslaw.us/codes/california/code-of-civil-procedure/part-2/title-10/chapter-10/section-871-4)

## Hierarchy

Title CCP — Code of Civil Procedure - CCP > Part 2. — PART 2. OF CIVIL ACTIONS [307. - 1062.34.] > Title 10. — TITLE 10. ACTIONS IN PARTICULAR CASES [725a. - 871.30.] > Chapter 10. — CHAPTER 10. Good Faith Improver of Property Owned by Another [871.1. - 871.7.]

## Text

The court shall not grant relief under this chapter if the court determines that exercise of the good faith improver’s right of setoff under Section 741 of the Code of Civil Procedure or right to remove the improvement under Section 1013.5 of the Civil Code would result in substantial justice to the parties under the circumstances of the particular case. In determining whether removal of the improvement would result in substantial justice to the parties under the circumstances of the particular case, the court shall take into consideration any plans the owner of the land may have for the use or development of the land upon which the improvement was made and his need for the
 land upon which the improvement was made in connection with the use or development of other property owned by him.
