The country was formed in 1795, when the warrior chief Kamehameha the Great, of the independent island of Hawaiʻi, conquered the independent islands of Oʻahu, Maui, Molokaʻi and Lānaʻi and unified them under one government. In 1810, the whole Hawaiian archipelago became unified when Kauaʻi and Niʻihau joined the Hawaiian Kingdom voluntarily. Two major dynastic families ruled the kingdom: the House of Kamehameha and the House of Kalākaua.