On 16 July 1627, in an event known as the Turkish Abductions, the islands were captured by a fleet of three ships of Barbary Pirates from Algiers, who stayed there until 19 July under the control of Ottomans. They had earlier raided the east of Iceland and Murat Reis from Salé in Morocco had commanded another raid in Grindavík in June of that year. The pirates captured 234 people from the islands and took them on a 27-day voyage to Algiers, where most of them spent the rest of their lives in bondage. One of the captives, Lutheran minister Ólafur Egilsson, managed to return in 1628 and wrote a book about his experience. In 1636, ransom was paid for 34 of the captives, and most of them returned to Iceland. After this, a small fort was built on Skansinn (that is, "the bastion"), and an armed guard was established to keep watch from the mountain Helgafell for the approach of ships.