San Miguel is a city in eastern El Salvador. It is the country's third most populous city. 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 2017 was 518,410.