Founded as San Miguel de Miraflores, it was established as a district on January 2, 1857. As a result of the Battle of Miraflores fought during the War of the Pacific, Miraflores got the designation of "Ciudad Heroica" ("Heroic City"). The district's postal code is 18.