In the 16th century, the archipelago prospered from the Atlantic slave trade. Pirates occasionally attacked the Portuguese settlements. Francis Drake, an English privateer, twice sacked the (then) capital Ribeira Grande in 1585 when it was a part of the Iberian Union. After a French attack in 1712, the town declined in importance relative to nearby Praia, which became the capital in 1770.