The modern history of Niue can be traced back to the 1740s with the arrival of Captain James Cook. Cook described the island as "Savage Island" in his records as the natives were not very welcoming to strangers. This was in complete contrast to the Tongans he described as "The Friendly Islands". Captain Cook tried to set his foot thrice on the island but was repulsed each of the three times. The natives at that time were quite hostile to strangers. Christianity was brought to the island by Peniamina in the year 1846 when he got converted during his stay at Samoa. The islanders were completely converted to Christianity by the end of the 19th century. Colonization took place thereafter and the island was declared as a part of the British Empire.