The city San Miguel de Allende is in the state of Guanajuato, and lies 74 miles east of Guanajuato, Guanajuato It is centrally located within the municipality of San Miguel de Allende, forty miles northwest of Queretaro and 179 miles northwest of Mexico City