The history of Hawaii began with the discovery and settlement of the Hawaiian Islands by Polynesian people between 940 and 1200 AD. The first recorded and sustained contact with Europeans occurred by chance when British explorer James Cook sighted the islands in January 1778 during his third voyage of exploration. Aided by European military technology, Kamehameha I conquered and unified the islands for the first time, establishing the Kingdom of Hawaii in 1795. The kingdom became prosperous and important for its agriculture and strategic location in the Pacific.
American immigration, led by Protestant missionaries, and Native Hawaiian emigration, mostly on whaling ships but also in high numbers as indentured servants and as forced labor, began almost immediately after Cook's arrival.