Rework the following paragraph to remove all of the grammatical flaws
The Catholic Monarchs, Isabella and Ferdinad, had tried for several years to defeat the muslims, who at this time, only remained seated in the city of Granada.
The Catholic Monarchs, Isabella, and Ferdinand, had tried for several years to defeat the Muslims, who, at that time, only remained seated in the city of Granada.