Maldives has been an independent polity for the majority of its history, except for three periods in which it was ruled by outside forces. In the mid-16th century, for fifteen years, the Maldives was dominated by the Portuguese Empire. In the mid-17th century, the Dutch Empire (Malabar) dominated Maldives for four months. Finally, in the late 19th century, on the brink of war, the Maldives became a British protectorate from 1887 until 1965. The Dutch referred to the islands as the "Maldivische Eilanden", while the British anglicised the local name for the islands first to the "Maldive Islands" and later to the "Maldives". The islands gained independence from the British Empire in 1965, and in 1968 became a republic ruled by a president and an authoritarian government.