On 15 November 2016, Barilaro was elected unopposed as leader of the National Party in New South Wales, following the resignation of Troy Grant.[15] Following the resignation of Mike Baird and the election of Gladys Berejiklian as Leader of the New South Wales Liberal Party, Barilaro led The Nationals to form the Liberal-National coalition in the Berejiklian ministry that was sworn in on 23 January 2017.[16][17][18]