Félix Hernández Jiménez dated the battle of Albesa to the summer of 1003 because he connected it with the seizure of the castle of Castellolí—mentioned only in one Christian source—by Abd al-Malik al-Muzaffar, the Córdoban hajib.[10] The Bayān al-Mugrib of Ibn Iḍārī records how Abd al-Malik was marching through lightly populated country toward Barcelona on first of Shawwal (3 August), and that sometime after this date he camped at al-Baṭḥā (possibly Albesa).[11] Abd al-Malik proceeded to invade Urgell and raze the castles of Montmagastre and Meià.