The Mexican Federal District was established by the new government and by the signing of their new constitution, where the concept of a federal district was adapted from the United States Constitution. Before this designation, Mexico City had served as the seat of government for both the State of Mexico and the nation as a whole. Texcoco de Mora and then Toluca became the capital of the State of Mexico.