sentences:  The first division was led by Abbad III al-Mu'tamid, the second division was led by Yusuf ibn Tashfin, and the third division consisted of black African warriors with Talwars and long javelins.Abbad III al-Mu'tamid and his division battled with Alfonso VI alone till the afternoon, then Yusuf ibn Tashfin and his division joined the battle and encircled Alfonso VI and his troops.Alfonso's troops panicked and started to lose ground, then Yusuf ordered the third division of his army to attack and finish the battle.