Erdoğan played football for Kasımpaşa before being elected in 1994 as the Mayor of Istanbul from the Islamist Welfare Party. He was stripped of his position, banned from political office, and imprisoned for four months for inciting religious hatred.[5] Erdoğan abandoned openly Islamist politics and established the moderate conservative AKP in 2001. Following the AKP's landslide victory in 2002, the party's co-founder Abdullah Gül became Prime Minister, until his government annulled Erdoğan's ban from political office.