Nicholas II Garai (Hungarian: II. Garai Miklós, Croatian: Nikola II Gorjanski; c. 1367 – December 1433) was a powerful Hungarian baron, who served as the Palatine of Hungary from 1402 until 1433 and the ban of Macsó, Usora, Só, Slavonia, Croatia and Dalmatia. He also ruled over Braničevo, Syrmia, Bačka, Banat and Baranya regions through vassals. Together with his close ally Stibor of Stiboricz, he became one of the richest and most powerful nobles in Hungary for over 30 years. The valiant Nicholas II Garai governed over national matters as the factual Ruler of Hungary next to the King Sigismund. In 1416 Sigismund extended their armorial bearings showing the Order of the Dragon and the Order of the Scarf. He presented the patent to his brother-in-law.
Nicholas II's first wife was Theodora of Serbia, daughter of Prince Lazar of Serbia. In 1405, he married Anna of Cilli, sister of King Sigismund's second wife, Barbara of Cilli, thereby becoming brother-in-law of the King and Queen of Hungary. His granddaughter Anna was engaged to King Matthias Corvinus.
Nicholas was the son of Nicholas I Garai and his unnamed wife. His father established the prestige and the wealth of the Garai family during the reign of Louis I of Hungary. The year of Nicholas's birth is unknown, but he was born between the late 1350s and the middle of the 1360s. His father arranged Nicholas's engagement to Helen, a daughter of Lazar of Serbia.