Born around 1336, James was the son of King
James III of Majorca and
Constance of Aragon. The Kingdom of Majorca came into being when
James the Conqueror,
King of Aragon, died on 27 June 1276. He distributed his realms between his two sons, leaving his elder son,
Peter III, with
Aragon,
Catalonia and
Valencia, and his younger son,
James II, with the
Balearic Islands,
Montpellier,
Roussillon and
Cerdanya. Peter III of Aragon and his successors made several attempts to re-unite the lands of the
Crown of Aragon under their rule. Peter III demanded an oath of fealty from his brother in 1280; Peter III's elder son,
Alfonso III of Aragon, occupied the Balearic Islands in 1287. Alfonso III's brother and successor,
James II of Aragon, restored the islands to his uncle in the
Treaty of Anagni in 1295, but James II of Majorca had to acknowledge his nephew's suzerainty. In 1324, James II of Aragon confirmed the right of James II of Majorca's grandson, James III of Majorca (James IV's father), to inherit the Kingdom of Majorca after lengthy negotiations. James III married the sister of
Peter IV of Aragon, but their relationship was tense, because James III avoided doing homage to his brother-in-law for years. Peter IV declared James III a disobedient vassal and occupied the Balearic Islands, Roussillon and Cerdanya in May 1344. James III went to
Avignon in early 1348 to secure
Pope Clement VI's support against Peter IV. James accompanied his father. Scholar Nancy Goldstone proposes that James most probably met with his future wife,
Joanna I of Naples, who had come to Avignon to stand trial for her alleged involvement in the murder of her first husband,
Andrew. She answered the charges that Andrew's brother,
Louis I of Hungary, had brought against her and the Pope declared her innocent in March 1348. James III supported Joanna I during the trial and she promised to lend the Neapolitan fleet to him to invade the Balearic Islands. James III had to sell his last domain, Montpellier, to France to raise funds before launching the invasion in 1349. His army was routed and he was killed in the
Battle of Llucmajor on 25 October 1349. ==Imprisonment and marriage==