Advocating staunch Islamist political views during his university years, Gül became a Member of Parliament for Kayseri in 1991 and was re-elected in 1995, 1999, 2002 and 2007. Initially a member of the Islamist Welfare Party, Gül joined the Virtue Party in 1998 after the former was banned for anti-secular activities. When the party split into hardline Islamist and modernist factions in 2000, Gül joined fellow party member Recep Tayyip Erdoğan in advocating the need for reform and moderation. He ran against serving leader Recai Kutan for the Virtue Party leadership at a time when Erdoğan was banned from holding political office. As the candidate for the modernist camp, he came second with 521 votes while Kutan won 633. He co-founded the moderate Justice and Development Party (AKP) with Erdoğan in 2001 after the Virtue Party was shut down in the same year, while hardline conservative members founded the Felicity Party instead.