San Miguel is a city in eastern El Salvador. It is the country's third most populous city after San Salvador and Santa Ana. It is located 138 km east of the capital, San Salvador. It is also the capital of the department of San Miguel and a municipality. The population of the city in 2007 was 218,410.