In 1627, three Arab pirate ships from the Ottoman-controlled Barbary Coast raided several towns on the south coast of Iceland and outlying islands. They attacked Grindavík and Heimaey. In Grindavík, townspeople could flee into the lava field of Reykjanes and hide indefinitely. Heimaey was so isolated that it was vulnerable and people suffered. Many heroic stories were told of the people who survived the invasion, most notably Guðríður Símonardóttir. Better known as Tyrkja-Gudda (Turkish-Gudda), she was taken by the pirates from her home at Stakkagerði on Heimaey to the slave market in Algeria. From there she bought her way back to Iceland through Tunisia, Italy and Denmark—Iceland was then under Danish rule. Upon returning to Iceland, she married the poet Hallgrímur Pétursson. The Hallgrímskirkja Lutheran church in Reykjavík is named in his honour.