 A sultanate was established in 1500.In the 19th century, Mayotte was conquered by Andriantsoly, former king of Iboina on Madagascar, and later by the neighbouring islands Mohéli and then Anjouan before being purchased by France in 1841.The people of Mayotte voted to remain politically a part of France in the 1974 referendum on the independence of the Comoros.