San Miguel de Allende is the principal city in the municipality of San Miguel de Allende, located in the far eastern part of Guanajuato, Mexico.