Short answer
Yes. Castile and Aragon fought each other on a number of occasions during the Middle Ages, mostly over borders, influence in neighboring territories and royal succession. They were also frequent allies, especially against Muslim-ruled territories, and the two crowns were eventually joined through the marriage of Isabella of Castile and Ferdinand of Aragon.
Why the two kingdoms came into conflict
Castile and Aragon shared a long border and competed over the same areas, including the kingdom of Murcia, the frontier with Navarre and the right to expand southward during the Reconquista. Their kings were often related, and family ties gave rise to disputes over inheritance as well as alliances.
Treaties during the thirteenth century tried to divide the zones in which each kingdom could expand against Muslim rulers. Such agreements could settle disputes for a time, but they did not stop later quarrels.
The main conflicts
The War of the Two Peters
The best-known conflict is the War of the Two Peters, which lasted roughly from 1356 to 1375 and involved Peter I of Castile and Peter IV of Aragon. It began with border disputes and was entangled with Castile’s own civil war between Peter I and his half-brother Henry of Trastámara. Aragon supported Henry, and when Henry won the throne in 1369, he went on to rule Castile as Henry II. The war was also linked to the wider Hundred Years’ War, since France and England backed opposing sides in Castile.
Fifteenth-century clashes
In the fifteenth century, Trastámara princes ruled in both kingdoms, which did not prevent conflict. The “Infantes of Aragon,” younger brothers of the Aragonese king who held lands and influence in Castile, became involved in Castilian politics and clashed with the Castilian king John II and his favorite, Álvaro de Luna. Open war between the two kingdoms occurred around 1429 to 1430 and the conflict was resolved by a truce.
Cooperation as well as conflict
It would be a mistake to see the history as constant hostility. Castile and Aragon fought together at Las Navas de Tolosa in 1212, a major victory over the Almohads. Their rulers also sought each other’s help in dealing with France, Navarre and powerful nobles.
How the conflicts ended
The two crowns came together through the marriage of Isabella of Castile and Ferdinand of Aragon in 1469. Isabella became queen of Castile in 1474, and Ferdinand became king of Aragon in 1479. The two kingdoms were not merged. Each kept its own laws, courts and customs, with a shared monarchy. Why the couple chose each other is discussed in why Queen Isabella married King Ferdinand.
For the broader context, see the kingdom of castile history, which covers how Castile’s rulers shaped the peninsula.
What changed after the union
Even after the union, the two crowns remained distinct for more than two centuries. A real move toward a single legal and administrative system came in the early eighteenth century under Philip V. Over time, the old rivalry between the two kingdoms faded, though regional identities remained strong.