Ulrich II was the son of Count Frederick II of Celje and his wife Elizabeth, a scion of the CroatianHouse of Frankopan and a grand daughter of Francesco I da Carrara, lord of Padua. Little is known of his youth. In about 1432 he married Kantakuzina Katarina Branković, daughter of Đurađ Branković, despot of Serbia., and the sister of Mara Branković. His influence in the affairs of the Kingdom of Hungary and the Holy Roman Empire soon overshadowed that of his father, with whom he was raised to a Prince of the Empire by Emperor Sigismund of Luxembourg in 1436. This led to feuds with the Austrian House of Habsburg, wounded in their rights as Styrian overlords of Celje, ending, however, in an alliance with the Habsburg King Albert II of Germany, who made Ulrich his lieutenant in Bohemia for a short while. Upon King Albert's death in 1439, Ulrich took up the cause of his widow Elizabeth of Luxembourg, and presided at the coronation of her infant son Ladislaus the Posthumous with the Holy Crown of Hungary in 1440. A feud with the Hungarian Hunyadi family followed, embittered by John Hunyadi's failed attack on the forces of the Ottoman Empire at the Battle of Varna in 1444—while Ulrich remained idle—and Hunyadi's refusal to recognize Ulrich's claim to Bosnia on the death of King Tvrtko II. In 1446 Hunyadi, now regent of Hungary, harried the Celje territories in Croatia-Slavonia; however his power was broken at the Second Battle of Kosovo in 1448, and Count Ulrich was able to lead a successful crusade, nominally in the Habsburg interest, into Hungary. In 1452, he forced Emperor Frederick III of Habsburg to hand over the boy king Ladislaus to his keeping, practically making him ruler of Hungary. In 1454 his power was increased by his succession to his father's vast wealth; and after the death of John Hunyadi at the Siege of Belgrade in 1456, he was named Captain General of Hungary by Ladislaus, an office previously held by his rival. Ulrich's triumph did not last: On 8 November, he entered the fortress of Belgrade with King Ladislaus; the next day he was killed by agents of John Hunyadi's son László in unknown circumstances. With him died the male line of the Counts of Celje. He was buried in the Minorite Church of St. Mary in Celje. The eulogy was delivered by the famous humanist rhetorician and prelate Johann Roth. Ulrich's estates were claimed by his widow Catherine, his son-in-law Matthias Corvinus of Hungary - the younger brother of László Hunyadi - as well as Count John of Gorizia, and Emperor Frederick III of Habsburg, who outlived his rivals. Ulrich's high ambitions were sharply criticized by Aeneas Sylvius, although his writings were politically minded, as he had served as the personal secretary of Emperor Frederick III at the height of his conflict with Ulrich. On his mother's side, Ulrich was the closest surviving male descendant of Francesco I da Carrara, lord of Padua. However, he is not known to have ever pressed claim on the Carraresi inheritance.