Ibiza Castle, also known as Almudaina (Castillo de Ibiza), is a medieval fortification majestically overlooking the old Dalt Vila quarter in Ibiza Town. Listed as a UNESCO World Heritage site since 1999, the castle's name derives from the Arabic al-mudayna meaning the citadel, reflecting its original role as the military and administrative headquarters during Muslim rule. Built by Philip II in the 16th century, with structural elements from the 12th-13th centuries visible through archaeological excavations, the complex served as protection against pirate raids and enemy attacks. It has functioned as a governor's residence, military barrack, and prison through much of the 20th century. Today visitors can explore its ancient walls, towers, and courtyards while enjoying panoramic views of the Mediterranean Sea.