 She and the viceroy are also prominent characters in the Thornton Wilder novel "The Bridge of San Luis Rey".To avoid the establishment of foreign bases from which attacks could be launched on Peru, Amat organized an expedition under the command of Domingo de Bonechea to Tahiti, which arrived just after that of Captain Cook, but in time to explore other islands in the group which Cook had not discovered.In subsequent voyages ordered by Amat, de Bonechea was the first European to explore most of French Polynesia.