In the United States , such municipal corporations are established by charters that are granted either directly by a state legislature by means of local legislation , or indirectly under a general municipal corporation law , usually after the proposed charter has passed a referendum vote of the affected population .
In the United States , cities are made by the municipal charters .