In the late 17th century, Spain built Castillo de San Marcos to defend the city against both pirates and British forces. The castle withstood an attack by the English in 1702 that left the rest of St.