In 1882, the French Third Republic established a protectorate over the Merina Kingdom on the island of Madagascar, with the consent of the United Kingdom. The French position on the island was solidified by the First Madagascar expedition (May 1883 to December 1885, the first phase of the Franco-Hova Wars). The protectorate lasted until 1897, when the French abolished the monarchy and turned the island into a colony, following the Second Madagascar expedition (December 1894 to September 1895, the second and last phase of the Franco-Hova Wars). Afterwards, Madagascar remained under the French colonial rule until 1958, when the autonomous Malagasy Republic was established. The Republic gained full independence in 1960.