Wrong.
The Moors originally went to the Iberian Peninsula as hired mercenaries by the Castilians.
There was no "rape, murder, or pillage".
They were highly civilized and greatly advanced the technology and civilization of Spain.
The evil were the knights of Aragon.
In fact, it is easy to prove since El Cid fought for the Moors for a significant time span.
{...
When conspirators murdered Sancho in 1072, El Cid found himself in a difficult situation. Since Sancho was childless, the throne passed to his brother Alfonso, whom El Cid had helped remove from power. Although El Cid continued to serve the sovereign, he lost his ranking in the new court, which treated him suspiciously and kept him at arm's length. Finally, in 1081, he was exiled.
[8]
El Cid found work fighting for the
Muslim rulers of
Zaragoza, whom he defended from its traditional enemy,
Aragon. While in exile, he regained his reputation as a strategist and formidable military leader. He was repeatedly victorious in battle against the Muslim rulers of
Lérida and their Christian allies, as well as against a large Christian army under King
Sancho RamÃrez of Aragon.
...}