Eleanor of Castile (1307–1359) was Queen of Aragon as the wife of King Alfonso IV, serving as queen consort from 1329 until 1336. She was born in 1307 as the eldest child and daughter of King Ferdinand IV of Castile and Constance of Portugal, belonging to the Castilian House of Ivrea.
At the age of four, Eleanor was betrothed to James, the eldest son and heir apparent of King James II of Aragon, through agreements reached in the Meeting of Calatayud in 1311. She was subsequently sent to the Aragonese court to be raised as the future queen. Following the death of her father in 1312 and her mother in 1313, her grandmother Maria de Molina ruled on behalf of Eleanor's younger brother, King Alfonso XI of Castile.
The wedding ceremony between James of Aragon and Eleanor took place on 18 October 1319. However, James refused to give the kiss of peace during the ceremony and soon fled on horseback, abandoning his wife. In December 1319, he renounced his rights to the throne of Aragon and entered the Knights Hospitaller. James II's younger son, Alfonso, was then proclaimed heir apparent.
After returning to Castile, Eleanor retired to the Abbey of Santa María la Real de Las Huelgas, though she never took the veil. A proposed marriage to the future Edward III of England in early 1325 was abandoned due to the deposition of Edward II.
In January 1329, Eleanor was betrothed to King Alfonso IV of Aragon, and the wedding took place on 5 February 1329 in the Church of San Miguel de Tarazona. Alfonso IV granted her the city of Huesca and other villages and castles. The marriage produced two sons: Ferdinand (1329–1363), Marquis of Tortosa and Lord of Albarracín, and John (1331–1358), Lord of Elche, Biel and Bolsa.
During her queenship, Eleanor became a disruptive influence in Aragon, plotting to advance the interests of her own sons over those of her stepson, Peter (later Peter IV). She convinced her husband to make significant territorial donations to her children, which diminished the crown's patrimony and created resentment in the Aragonese court.
After the death of Alfonso IV on 24 January 1336, Eleanor fled to the Kingdom of Castile with her two sons, fearing the new King Peter IV. She took quantities of gold, silver, and jewels with her. Once in Castile, she continued her disruptive behavior against her nephew, King Peter I of Castile. Her youngest son, John, was assassinated in Bilbao on 12 June 1358 by order of Peter I. One year later, in March or April 1359, Eleanor herself was murdered in the castle of Castrojeriz by order of her nephew. Her eldest son, Ferdinand, was subsequently assassinated in Burriana in 1363 by order of his half-brother, King Peter IV.
The final burial location of Eleanor's remains is uncertain, with three sites claiming possession: the Old Cathedral of Lleida, the Church of Nuestra Señora del Manzano in Castrojeriz, and the Abbey of Santa María la Real de Las Huelgas in Burgos.