The President of Mongolia is able to veto the laws made by parliament, appoint judges and justice of courts and appoint ambassadors. The parliament can override that veto by a two-thirds majority vote. Mongolia's constitution provides three requirements for taking office as president; the candidate must be a native-born Mongolian, be at least 45 years old, and have resided in Mongolia for five years before taking office. The president must also suspend their party membership. After defeating incumbent Nambaryn Enkhbayar, Tsakhiagiin Elbegdorj, a two-time former prime minister and member of the Democratic Party, was elected as president on May 24, 2009 and inaugurated on June 18 that year. The ruling Mongolian People's Revolutionary Party (MPRP) nominated Batbold Sukhbaatar as new Prime Minister in October 2009. Elbegdorj was re-elected on June 26, 2013 and was inaugurated on July 10, 2013 for his second term as president. In June 2017, opposition Democratic Party candidate Khaltmaagiin Battulga won the presidential election. He was inaugurated on 10 July 2017.