CCP 1161a: Unlawful Detainer After Foreclosure

An unlawful detainer after foreclosure in California is the court process a new owner uses under Code of Civil Procedure 1161a to remove occupants from a property bought at a trustee’s sale. The sequence is strict: record the Trustee’s Deed Upon Sale, serve the correct written notice to quit, let the notice period run out, file the lawsuit in Superior Court, win a judgment, and have the sheriff enforce a writ of possession. Skipping or fumbling any step gives the occupant a defense and sends the new owner back to the start.1California Legislative Information. California Code CCP 1161a

Record the Deed Before Anything Else

CCP 1161a requires that the new owner’s title be “duly perfected” before any notice to quit is served. In practice that means the Trustee’s Deed Upon Sale must be recorded with the county recorder’s office in the county where the property sits.1California Legislative Information. California Code CCP 1161a A notice served before recording is defective, and no later recording fixes it for that notice. The underlying nonjudicial foreclosure must also have complied with Civil Code 2924, including a recorded notice of default, the three-month waiting period, and a properly recorded and published notice of sale.2California Legislative Information. California Civil Code 2924 If anything in the foreclosure itself was procedurally bad, that defect can carry through and sink the eviction.

Notice Period Depends on Who Is Living There

The length of the written notice to quit depends on how the occupant is classified. Misclassifying the occupant is one of the most consequential mistakes a new owner can make.

Three Days for the Former Owner

The borrower who lost the property, along with anyone whose claim to possession runs through that former owner, gets a three-day written notice to quit.1California Legislative Information. California Code CCP 1161a The notice is unconditional. There is no option to pay, cure, or stay. The three days are calendar days, and when the final day falls on a weekend or court holiday, the deadline rolls to the next business day.

Thirty Days or Ninety Days for Tenants

A tenant who was renting the property before the foreclosure gets more time, and two different laws apply at once. CCP 1161a sets the state-law minimum at the length of the rental period, capped at 30 days.1California Legislative Information. California Code CCP 1161a The federal Protecting Tenants at Foreclosure Act, made permanent in 2018, raises the floor to 90 days for any bona fide tenant and lets a tenant with a fixed-term lease stay through the end of that lease, unless the new owner intends to occupy the property as a primary residence (in which case the 90-day notice still applies).3Office of the Law Revision Counsel. 12 USC 5220 – Assistance to Homeowners

To qualify as “bona fide,” the tenant cannot be the former owner or an immediate family member of the former owner, the lease must have been arm’s length, and the rent cannot be substantially below fair market value.3Office of the Law Revision Counsel. 12 USC 5220 – Assistance to Homeowners A tenant who lives in the property alongside the former homeowner does not get the 90-day federal protection and falls back under the 30-day state cap.

Serving the Notice Correctly

CCP 1162 sets the methods of service and the order in which they must be tried.4California Legislative Information. California Code of Civil Procedure 1162

  • Personal service, handing the notice directly to the occupant, is the first method and the preferred one.
  • Substituted service, used when the occupant cannot be found at home or at work, means leaving the notice with another person of suitable age and discretion at either location, followed by a mailed copy to the property.
  • Post and mail is the last resort, available only when the first two methods fail. The server attaches the notice to a visible spot on the property and mails a copy to the occupant at the property address.

Jumping to post and mail without a genuine attempt at the earlier methods is a recurring defect that gets cases dismissed. The server should document every attempt.

Filing the Lawsuit and Response Timeline

Once the notice period runs out and the occupant has not left, the new owner files an unlawful detainer complaint in Superior Court for the county where the property is located. The complaint has to allege a valid foreclosure sale and perfected title. The standard Judicial Council form UD-100 states on its face that it cannot be used for post-foreclosure evictions under CCP 1161a, so the complaint must be drafted specifically for this type of case.5California Courts. UD-100 Complaint – Unlawful Detainer

The occupant must then be formally served with the summons and complaint, separately from the earlier notice to quit. After personal service, the occupant has 10 court days (excluding Saturdays, Sundays, and judicial holidays) to file a written answer. Service by mail adds five court days.6California Legislative Information. California Code of Civil Procedure 1167 If no answer arrives, the new owner can seek a default judgment. If an answer is filed, the court sets an expedited trial. The issues the court will look at are narrow: whether the sale happened, whether title was perfected, whether proper notice was served, and whether the notice period expired.

Writ of Possession and the Sheriff Lockout

A judgment does not put the new owner back in the house. The court issues a writ of possession, which the new owner delivers to the county sheriff or marshal for enforcement. The levying officer serves the writ on the occupant personally, through a household member, or by posting it on the property.7California Legislative Information. California Code of Civil Procedure 715.020

From the date the writ is served, the occupant has five days to leave. There is no extension of that window. On day six, the sheriff returns to remove the occupant and hand possession to the new owner.7California Legislative Information. California Code of Civil Procedure 715.020

Someone living on the property who was not named in the lawsuit and whose claim to possession predates the unlawful detainer filing can file a claim of right to possession. The court holds a hearing within five to fifteen days.8California Legislative Information. California Code of Civil Procedure 1174.3 A new owner who wants to shut down this avenue can serve a prejudgment claim of right to possession together with the summons and complaint, which bars late claims at the sheriff stage.

Defenses an Occupant Can Raise

Occupants have real defenses, and all of them must be raised in the written answer. The strongest ones focus on procedure and title.

  • Title was not perfected because the Trustee’s Deed Upon Sale was not recorded before the notice to quit was served. There is no retroactive cure for the pending case.
  • The underlying foreclosure sale violated Civil Code 2924, such as a missing notice of default or a short waiting period.2California Legislative Information. California Civil Code 2924
  • The notice to quit was served in the wrong order under CCP 1162, or the server skipped the required mailing after substituted service.4California Legislative Information. California Code of Civil Procedure 1162
  • A bona fide tenant was given a three-day notice instead of the 90-day federal notice.
  • The new owner treated the occupant as the former owner when the occupant was actually a pre-foreclosure tenant.

A successful defense usually produces a dismissal without prejudice, meaning the new owner can fix the defect and refile. That still costs the new owner weeks or months, which is why occupants who spot problems should raise them early.

Protections for Active-Duty Servicemembers

Active-duty military personnel and their dependents cannot be evicted from a primary residence without a court order under the Servicemembers Civil Relief Act. The protection applies when the monthly rent falls below an annually adjusted threshold set at $2,400 in 2003 and increased each year based on housing costs. A servicemember whose ability to pay rent or respond to the case is materially affected by military service can ask the court to stay proceedings for at least 90 days, and that stay can be extended. Even after judgment, enforcement of a writ of possession can be paused for the duration of military service plus 90 days after discharge. Knowingly violating these protections is a federal misdemeanor.9Office of the Law Revision Counsel. 50 USC 3951 – Evictions and Distress

Appeal and Stay of Execution

An occupant who loses at trial can file a notice of appeal within 30 days of being served with notice of entry of judgment or a filed-endorsed copy of the judgment. If neither is served, the deadline extends to 90 days from the date the court entered judgment. An appeal by itself does not stop the sheriff. To avoid being removed while the appeal is pending, the occupant has to separately ask the court for a stay of execution on the writ of possession, which usually means posting a bond or showing substantial legal issues on appeal.

Cash for Keys as an Alternative

Many of these cases end in a negotiated move-out rather than a sheriff lockout. In a cash-for-keys agreement, the new owner pays the occupant a lump sum to leave by a set date and in reasonable condition. For the new owner, it compresses a months-long contested eviction into a predictable move-out. For the occupant, it provides moving money and keeps an unlawful detainer judgment off their record. Any such agreement should be in writing, specifying the move-out date, the payment amount and timing (usually after keys are surrendered), the expected condition of the property, and a mutual release of claims. An occupant who signs the agreement and then stays put has handed the new owner a signed admission that there is no right to remain, which makes any later unlawful detainer case straightforward.

Personal Property Left Behind

After the sheriff completes the lockout, the new owner cannot simply discard whatever is still inside. CCP 1174 requires storing the property safely and sending the former occupant (and anyone else the new owner reasonably believes owns the items) written notice explaining how to reclaim it. The former occupant can retrieve the belongings by paying reasonable storage costs within the time stated in the notice. Property that appears lost rather than abandoned has to be turned over to local police or the sheriff. Unclaimed items can then be disposed of or sold under the procedures in Civil Code 1988.10California Legislative Information. California Code of Civil Procedure 1174 Following these steps shields the new owner from liability. Skipping them does the opposite.