Almost 200 years later, on June 10, 1762, this mining town became ''Real Villa de San Miguel de Tegucigalpa y Heredia'' under the rule of Alonso Fernández de Heredia, then-acting governor of Honduras.  The late 18th and early 19th centuries saw disruption in Tegucigalpa's local government, from being extinguished in 1788 to becoming part of Comayagua in 1791 to returning to self-city governance in 1817.