Lieutenant James Cook first sailed to New Zealand in 1769. There he mapped the entire coastline and tentatively claimed the land for King George III of the United Kingdom. Beginning in 1790, an increasing number of European settlers came to New Zealand. In 1833, with growing lawlessness amongst traders and settlers, the British government appointed James Busby as British Resident to protect British trading interests. Despite Busby's presence, trouble increased. In 1840, the British government sent Captain William Hobson to New Zealand as lieutenant governor; he was instructed to negotiate a voluntary transfer of sovereignty from the Māori to the British Crown. The resultant Treaty of Waitangi was signed on 6 February 1840, at Waitangi in the Bay of Islands. Following the Treaty, the islands of New Zealand became a Crown colony and Queen Victoria became the monarch over New Zealand.