To legally evict a tenant, you must follow the eviction procedures outlined by local laws. This typically involves providing proper notice, filing a court case, and obtaining a court order for eviction.