Unlawful detainer is a legal action landlords use to reclaim possession of a property when a tenant remains in occupancy without the right to do so, typically after a lease has expired or been terminated. This process involves a summary proceeding that aims to swiftly resolve disputes over property possession, balancing the rights of landlords and tenants under applicable housing laws.