In the 17th and 18th centuries, the islands were used as a hideout for pirates and became the location of a penal colony. It was during this period that Alexander Selkirk became marooned on the islands. In the 1740s, they were visited by Commodore Anson's flotilla during his ill-fated venture to the South Seas. The location of the archipelago was fixed by Alessandro Malaspina in 1790; previous charts had differed on the location. British and American whaling vessels were regular visitors to the islands, starting with the "London" (Captain Joshua Coffin) in 1795.