The municipality was founded on May 9, 1539 by Pedro Ruiz Corredor. Before the Spanish conquest it was the territory of the Muisca, which was the most developed in the country socially, culturally, and in productivity. Post-conquest governmental power was exercised by the Governor General, who was directly appointed by the King of Spain.