James II (in Catalan Jaume II d'Urgell or Jaume el Dissortat ("James the unlucky"), in Spanish Jaime II el desafortunado) (1380 – 1 June 1433) was the Count of Urgell (1408–1413), Viscount of Àger, and lord of Antillón, Alcolea de Cinca, and Fraga. Scion of a younger branch of the House of Barcelona and its last male member, he was the centre of opposition to the House of Trastámara after it succeeded to the Crown of Aragon in 1412.
Born at Balaguer to Peter II of Urgell and Margaret Palaiologue of Montferrat, James inherited the county of Urgell from his father in 1408. In Valencia on 29 June 1407, he had married Isabella, daughter of Peter IV of Aragon, who appointed him lieutenant of the Kingdom of Aragon in 1408.