Batería de San Juan de Terreros, located in Pulpí, Almería, is an 18th-century coastal artillery fortification built in 1764 under King Charles III to protect Spain's Mediterranean coastline from Barbary pirate attacks. Perched 109 meters above the Mediterranean Sea on a strategic promontory, the battery was designed by military engineer Thomas de Warluzel d'Hostel and represented the first major coastal defensive structure of the Almería coast, inspiring subsequent fortifications along the region. The site features well-preserved military architecture adapted to its clifftop location and offers commanding sea views. Since 2001, the battery has housed the Center for Interpretation of the Andalusian Coast and the Geoda of Pulpí, with modern facilities ensuring accessibility and allowing visitors to explore Spain's maritime defensive heritage.