On the 17th of June 1231 this treaty was signed in Capdepera by Jaume I, king of Aragon and Abu Abd Allah Muhammad, alfaqui of Minorca, under the terms of which the Minorca Muslims accepted Jaume I and his descendants as feudal lord and swore allegiance to him, while also giving up any rights to any other domain or fiefdom. Among the conditions agreed upon we can find the cession of the Castle of Minorca and the annual handing over of 900 almudins (1 almudin is 6 bushels) of barley, 100 of wheat, 100 head of cattle – Bulls and cows- of between 2 and 6 years, 300 goats – goats and kids - , 200 lambs and sheep and 2 hundredweight of butter.
Jaume II, the son of King Jaume I the Conqueror, ordered the founding of Capdepera with a view to strategically controlling this place that was so important to Majorca. He offered economic aid to the villagers, who at that time lived widely dispersed around the area, so that they would establish a walled-in, protected settlement. The “Castle”, therefore, is really a walled village.
And so it was, in the year 1300, that Jaume II planned a walled town for Capdepera, a place of approximately 82,525 square metres with a wall and fence, and another of similar size outside the walls. The initial project ended up as a space which was almost triangular, yet trapezoidal, and with an area of 8,069 square metres surrounded by a wall.