Present day Benin was the site of Dahomey, a prominent West African kingdom that rose in the 15th century. The territory became a French Colony in 1872 and achieved independence on 1 August 1960, as the Republic of Benin. A succession of military governments ended in 1972 with the rise to power of Mathieu Kerekou and the establishment of a government based on Marxist-Leninist principles. A move to representative government began in 1989. Two years later, free elections ushered in former Prime Minister Nicephore Soglo as president, marking the first successful transfer of power in Africa from a dictatorship to a democracy. Kerekou was returned to power by elections held in 1996 and 2001, though some irregularities were alleged. Kerekou stepped down at the end of his second term in 2006 and was succeeded by Thomas Yayi Boni, a political outsider and independent.