BROOKLYN - The city has begun to search for new housing for dozens of homeless families after deeming the living conditions at a Brooklyn shelter deplorable.

Mayor Bill de Blasio says the city is removing more than 140 families from two homeless shelters because of unsafe conditions. The mayor’s office says 64 of the families are being transferred out of the Auburn Family Residence in Fort Greene. The rest are being removed from another shelter in Manhattan.

The decision comes after a New York Times investigative report revealed that inspectors have repeatedly found issues such as rats and mold at the shelters.

Residents say the conditions have made it difficult to raise their children, with hardships including insufficient space and unsafe public bathrooms.

The city is working to find new homes for the affected families. The two shelters will be converted into facilities for homeless adults without children.