The Kingdom of Bora Bora was established during the early 19th century with the unification of the island of Bora Bora and official recognition by France and the United Kingdom in 1847 through the Jarnac Convention. It was one of a number of independent Polynesian states in the Society Islands, alongside Tahiti, Huahine and Raiatea in the 19th century, which all shared a similar language and culture and whose rulers were interrelated by marriage. Besides Bora Bora, the Kingdom encompassed the islands of Tupai, Maupiti, Maupihaa, Motu One, and Manuae. The Kingdom was finally annexed to France in 1888 and its last queen Teriimaevarua III was forced to abdicate in 1895. Bora Bora in ancient times: religious and military power The history of Bora Bora is marked by the rivalry of two clans: one based near Faanui, consisting of families attached to the marae Farerua, and the other consisting of the families of Nunue and Anau around the marae Vaiotaha, which was long among the most important marae of Polynesia. In this respect, Bora Bora is likewise marked by the rivalry with Raiatea in pursuit of religious power. Up to a certain period, a certain parallelism can be seen between the institutions of Bora Bora and Raiatea, which suggests that the two islands exercise joint religious and political authority over the other Leeward Islands. However, Raiatea ultimately became the center of religious power, while Bora-Bora retained a particularly strong military power, expressed both in internal wars and in wars with rival islands. According to Tupaia, Borabora was actually a place of exile for thieves and other wrongdoers. However, the outcasts eventually became pirates, attacking the other islands in kind. In the 18th century a great chief, Puni (Teihotu Matarua), succeeded in dominating the island's other clans. He then conquered Tahaa before attacking Raiatea, which he conquered in 1763 after a three-year campaign. In 1769, when James Cook landed at Tahaa and Raiatea, the islands were still dominated by Puni and his Borabora warriors. At Puni's death, his nephew Tapoa I, paramount chief of Bora Bora, Raiatea and Tahaa, settled at Raiatea, thus leaving local power to the chiefs Mai and Tefaaora, originally of Nunue and Anau, and members of the marae of Vaiotaha. The first clear mention of the island was by the Dutch explorer Jakob Roggeveen in 1722. James Cook saw it in 1769 and landed there in 1777.