The siege, which was carried out by the combined allied forces of the Kingdom of Castile and the Taifa of Baeza, commanded by Ferdinand III of Castile and Abd Allah Ibn Muhammad Al-Bayyasi of Baeza against the defending Taifa of Jayyān (جيان) whose forces were commanded by the notable Christian knight, Álvaro Pérez de Castro.
Taking this into account, in 1224, Ferdinand III of Castile attacked the surrounding lands in what today is the province of Jaén, establishing their base of operations at Baeza with their Muslim ally, Abd Allah Ibn Muhammad Al-Bayyasi, the king of the Taifa of Baeza.
On its march to Jaén, it was joined by Ferdinand III's vassal, the King of the Taifa of Baeza, Abd Allah Ibn Muhammad Al-Bayyasi and his forces.
The soldiers in these camps were instructed to carry out a campaign of attrition on the surrounding countryside which they effectively plundered of all its resources, destroying any buildings.
The defense of Jaén was led by 160 Christian knights who supported the Muslim defenders under the command of the Castilian magnate, Álvaro Pérez de Castro el Castellano, head of the House of Castro and grandson of Alfonso VII of León and Castile, the king of Castile and León.