In 2006 Jaak Aaviksoo announced that he would be leaving the post of rector of University of Tartu to run for a seat in the Estonian parliament Riigikogu in the 2007 elections as a member of liberal conservative Union of Pro Patria and Res Publica. Before joining the party and leaving his post as rector, Aaviksoo was considered as a candidate for the presidential elections in 2006, which were won by Toomas Hendrik Ilves. After already having joined Union of Pro Patria and Res Publica, Aaviksoo sought to become the party's leader for the 2007 parliamentary elections and so candidate for Prime Minister of Estonia, but lost a closely contested duel within the party to internationally renowned two-time former Prime Minister Mart Laar.