Following the resignation of Mike Baird as NSW Liberal leader and Premier on 19 January 2017, Berejiklian announced her intention to succeed him as the leader of the Liberal Party, and hence to become the 45th Premier of New South Wales. Baird endorsed Berejiklian as his successor, declaring that she would be "an outstanding Premier. . . No doubt about it. " A deal was struck between the moderate, centre-right, and right factions of the Liberal Party, facilitating the moderate Berejiklian's rise to the leadership, with conservative Dominic Perrottet as her deputy. The next day, ministers Andrew Constance and Rob Stokes—Berejiklian's only serious leadership challengers—decided not to contest the leadership, and instead opted to endorse Berejiklian. This left Berejiklian to take the leadership unopposed at the ensuing leadership contest held on 23 January. She was duly sworn in as Premier later that day, becoming the second woman to hold the post. The first was Labor's Kristina Keneally, who served in the position from 2009 to 2011.