Prime Minister Erdoğan announced on 24 April 2007 that Gül would be the Justice and Development Party candidate in the 2007 presidential election. Previously, there had been speculation that Erdoğan himself would be the party's candidate, which had provoked substantial opposition from secularists. When a boycott of opposition parties in Parliament deadlocked the election process, Gül formally withdrew his candidacy on 6 May 2007. If elected he would be the first president to have been involved with Islamist parties. But a few days later, on 11 May 2007 when he inquired after the alterations to the Turkish constitution which now allowed the people to elect the president directly rather than a parliamentary vote, Gül announced that he was still intending to run.