In 1108 the troops of the Almoravid Tamim, governor of Córdoba and son of Yusuf ibn Tashfin, turned again against the Christian territories, but this time the chosen city was not Toledo but Uclés. Alfonso VI was in Sahagún, recently married, elderly and with an old wound that prevented him from riding. Álvar Fáñez, governor of the lands of the Banu Di-l-Nun, was the commander of the army. He was accompanied by Sancho Alfónsez, the king's only son and heir. The armies clashed in the Battle of Uclés on 29 May 1108 and the Christian troops suffered another defeat. The young Sancho Alfónsez, heir to the throne, was killed in battle. As a consequence, the reconquest drive came to 30-year standstill, and the County of Portugal eventually became an independent kingdom. The military situation was also serious since the Almoravids seized almost immediately the entire defensive border of the Tagus valley from Aranjuez to Zorita and there were uprisings of the Muslim population in this region.