James II of Aragon, known as the Just, was born on August 10, 1267, in Valencia, the son of Peter III of Aragon and Constance of Sicily. He became King of Sicily in 1285, then succeeded his brother Alfonso III in 1291 as ruler of Aragon and Valencia and Count of Barcelona. He also held the title of King of Majorca from 1291 to 1295.
In 1295, the Treaty of Anagni required James to relinquish Sicily, but the Sicilians chose his brother Frederick as their king. Pope Boniface VIII subsequently granted James rights to Sardinia and Corsica. Though he was nominally their king from 1297, he conquered Sardinia only in 1324. James also campaigned in Murcia, which his forces captured in 1296; he held the region until 1304. In 1313, he granted the Aran Valley administrative and political autonomy.
James was also a poet and composer. Probably during his Sicilian reign, he wrote Mayre de Deu, a surviving Occitan religious song dedicated to the Virgin Mary. The poem’s imagery compares the Church to a ship in a storm, and its verses ask Mary to protect the king from sin.
He married 4 times and had numerous children. His second marriage, to Blanche of Anjou, produced 10 children, including his successor, Alfonso IV. James II died on November 2, 1327.