Buses near Copán. After the independence of Spain in 1821, Honduras formed part of the short Mexican Empire, then of the Federation of the Central America controlled by the liberal Honduran Francisco Morazán until the independence of the country in 1838.