 Comayagua was the capital of Honduras until 1880, when it was transferred to Tegucigalpa.In the decades of 1840 and 1850 Honduras participated in several failed attempts to restore Central American unity, such as the Confederation of Central America (1842–1845), the covenant of Guatemala (1842), the Diet of Sonsonate ( 1846), the Diet of Nacaome (1847) and National Representation in Central America (1849–1852).Although Honduras eventually adopted the name Republic of Honduras, the unionist ideal never waned, and Honduras was one of the Central American countries that pushed hardest for the policy of regional unity.