French Polynesia island of Rekareka to the southeast of Tahiti. Over a century later, British explorer Samuel Wallis visited Tahiti in 1767. French explorer Louis Antoine de Bougainville also visited Tahiti in 1768, while British explorer James Cook arrived in 1769. In 1772, the Spanish Viceroy of Peru Don Manuel de Amat ordered a number of expeditions to Tahiti under the command of Domingo de Bonechea who was the first European to explore all of the main islands beyond Tahiti. A short-lived Spanish settlement was created in 1774, and for a time some maps bore the name "Isla de Amat" after Viceroy
Tahiti island. In 1819, Pōmare II, encouraged by the missionaries, introduced the first Tahitian legal code, known under the name of the Pōmare Legal Code, which consists of nineteen laws. The missionaries and Pōmare II thus imposed a ban on nudity (obliging them to wear clothes covering their whole body), banned dances and chants, described as immodest, tattoos and costumes made of flowers. In the 1820s, the entire population of Tahiti converted to Protestantism. Duperrey, who berthed in Tahiti in May 1823, attests to the change in Tahitian society in a letter dated 15 May 1823: "The missionaries of the Royal