If a person entitled to commence an action for the recovery of real property, or for the recovery of the possession thereof, or to make any entry or defense founded on the title to real property, or to rents or services out of the property, is, at the time the title first descends or accrues, imprisoned on a criminal charge, or in execution upon conviction of a criminal offense, for a term less than life, the time, not exceeding two years, during which imprisonment continues is not deemed any portion of the time in this chapter limited for the commencement of the action, or the making of the entry or defense, but the action may be commenced, or entry or defense made, within the period of five years after the imprisonment ceases, or after the death of the person entitled, who dies while imprisoned; but the action shall not be commenced, or entry or defense made, after that period.
Ca. Civ. Proc. Code § 328.5