A bill passed by the Legislature would give the city greater power to crack down on illegal hotels being run out of apartment buildings.

The bill is designed to thwart a growing problem of landlords renting apartments as hotel rooms to get more money than rent laws allow. It has led to the removal of thousands of apartments “from an already tight housing market,” said state Sen. Liz Krueger (D-Manhattan), the bill’s sponsor.

Read more about Senator Liz Krueger’s illegal hotel legislation.