A tenement is a type of building that is typically divided into multiple apartments or living spaces, and rented out to different tenants. The term can also refer more broadly to any large residential building or complex. In some places, particularly in older cities like New York City, the word "tenement" has come to have a specific legal meaning referring to buildings that are not up to code or are overcrowded and unsafe for habitation.