In 1929 , during Spanish naval manoeuvres just off Ibiza , King Alfonso XIII came ashore here .
The King had to abandon his great caravel and head for the shore after weathering a surprise attack by pirates .