A task force has swooped on buy to let flats above shops as part of a crackdown on bad landlords in Leeds.
Council housing officers, fire officers and immigration officials inspected 22 flats in Dewsbury Road, Leeds, and found a list of fire, health and safety problems.
Some flats were overcrowded, lacked fire alarms, had poor heating and electrical defects.
The council says further action will be taken against offending landlords.
Immigration officials checked out 35 people living and working in the neighbourhood and arrested two illegal immigrants.
Other problems relating to waste disposal and fire safety in shops and offices were also uncovered during the inspections.
Leeds City Council executive member for neighbourhoods, planning and personnel Councillor Peter Gruen said: “This is another successful example of the value of teams and agencies from across the city and the region working together.
“It is quite concerning that the inspections uncovered such serious issues; overcrowding, electrical hazards, the potential to be trapped in a fire and lack of smoke or fire alarms doesn’t bear thinking about. That others have ignored their responsibilities to deal with waste or immigration rules cannot be tolerated. Various professionals will be following up to ensure action is taken swiftly.
“Health and safety is of the utmost importance for all premises and accommodation in Leeds, and we are firmly committed to taking appropriate measures to prevent anyone breaking the law as well as offering advice and support to keep people safe.”
The operation was co-ordinated by the council and paid for out of £125,000 of government funds handed out to help tackle bad landlords and poor living conditions in the city.
The council has warned this is the first of several similar operations scheduled for the city.
More than 20 councils across the country had a share of £4 million extra funding alongside Leeds in a government initiative to help tenants living in dirty, overcrowded and unsafe rented homes.