<P> When Ferdinand died, Sancho continued to enlarge his territory, conquering both Christian strongholds and the Moorish cities of Zamora and Badajoz . When Sancho learned that Alfonso was planning on overthrowing him in order to gain his territory, Sancho sent Cid to bring Alfonso back so that Sancho could speak to him . </P> <P> Sancho was assassinated in 1072, possibly as the result of a pact between his brother Alfonso and his sister Urraca . Since Sancho died unmarried and childless, all of his power passed to his brother Alfonso who, almost immediately, returned from exile in Toledo and took his seat as king of Castile and León . He was, however, deeply suspected of having been involved in Sancho's murder . According to the epic of El Cid, the Castilian nobility led by El Cid and a dozen "oath - helpers" forced Alfonso to swear publicly on holy relics multiple times in front of Santa Gadea (Saint Agatha) Church in Burgos that he did not participate in the plot to kill his brother . This is widely reported as truth, but contemporary documents on the lives of both Rodrigo Diaz and Alfonso VI of Castile and León do not mention any such event . Rodrigo's position as armiger regis was taken away and given to Rodrigo's enemy, Count García Ordóñez . </P> <P> In 1079, Rodrigo was sent by Alfonso VI to Seville to the court of al - Mutamid to collect the parias owed by that taifa to León--Castile . While he was there Granada, assisted by other Castilian knights, attacked Seville, and Rodrigo and his forces repulsed the Christian and Grenadine attackers at the Battle of Cabra, in the (probably mistaken) belief that he was defending the king's tributary . Count García Ordóñez and the other Castilian leaders were taken captive and held for three days before being released . </P> <P> In the Battle of Cabra (1079), El Cid rallied his troops and turned the battle into a rout of Emir Abdullah of Granada and his ally García Ordóñez . However, El Cid's unauthorized expedition into Granada greatly angered Alfonso, and May 8, 1080, was the last time El Cid confirmed a document in King Alfonso's court . This is the generally given reason for El Cid's exile, although several others are plausible and may have been contributing factors: jealous nobles turning Alfonso against El Cid, Alfonso's own animosity towards El Cid and an accusation of pocketing some of the tribute from Seville . </P>

Who won the city of calajara for the king