Section 339(1) in Karnataka Municipal Corporations Act, 1976
(1)If it appears to the Commissioner that any dwelling house or other building which is used as a dwelling place, or any room in any such dwelling-house, or building, is so overcrowded as to endanger the health of the inmates thereof, he may apply to a magistrate, to abate such overcrowding; and the magistrate, after such inquiry as he thinks fit to make, may by written order, require the owner of the building or room, within a reasonable time, not exceeding four weeks, to be laid down in the said order, to abate such overcrowding by reducing the number of lodgers, tenants or other inmates of the building or room, or may pass such other order as he may deem just and proper,