Ortiz de Domínguez herself at what is now the Palace of the Corregidora. Originally, they were open to both creoles and Spanish-born but after an altercation between Ignacio Allende and the Spaniard Crisóstomo López y Valdez, only creoles attended. The tertulias of Josefa Ortiz de Domínguez culminated in the Conspiracy of 1810, which was discovered before they had planned to act. On 13 September 1810, Epigmenio Gonzalez was arrested for having stockpiled weapons for an insurgency and the next day Mayor Miguel Domínguez and his wife Josefa Ortiz de Domínguez were arrested for their roles in the Conspiracy of 1810. With the conspiracy discovered, she still managed to get a warning to Miguel Hidalgo. He eluded capture and rushed to Dolores, where he gave his famous grito (the cry for independence). For her actions, La Corregidora was imprisoned several times between 1810 and 1817. She died impoverished and forgotten, but was later remembered when she became the first woman to appear on a Mexican coin. Once the armed battle began, the city was taken by the royalist army and was the last major city to be taken by the insurgents. After the end of the war, Santiago de Querétaro became the capital of the state of Querétaro in 1823, with the first state congress convening at the Auditorium of the Instituto de Bellas Artes de la Universidad Autónoma de Querétaro in the city. The state's first constitution was promulgated in the city in 1825, with the city as head of one of the state's six districts. In 1847, it was declared the capital of Mexico when U.S. forces invaded the country. One year later, the Treaty of Guadalupe Hidalgo was signed in this city, ceding almost half of Mexico's territory and ending the war. In 1854, another treaty signed here led to the Gadsden Purchase. In 1867, Maximilian I of Mexico was defeated at the Siege of Querétaro, where the liberals took him prisoner along with Generals Miguel Miramón and Tomás Mejía. In May 1867, the emperor was sentenced to death along with Mejía and Miramón in the Cerro de las Campanas. From 1869 to 1879, the districts were subdivided into municipalities, which the city of Querétaro as seat of both the municipality of Querétaro and the district of Querétaro. In the 20th century, the original municipality of Querétaro divided into three: Querétaro, El Marqués and Corregidora. The district system