Political career
In 1999, Mulayam Singh Yadav contested and won the elections for both the Kannauj and Sambhal Lok Sabha constituencies. The Representation of the People Act, 1951 allows for candidates to run for two seats, but mandates that they resign from one or the other within fourteen days if they win both. Thus, Mulayam Singh Yadav resigned from the Kannauj seat, and brought his son in to run for the seat and replace him. Mulayam Singh Yadav spearheaded his son's campaign, whose main opponents were Akbar Ahmad Dumpy of the Bahujan Samaj Party and Shaitan Singh Shakya of the Rashtriya Kranti Party. Akhilesh Yadav won and was elected to the 13th Lok Sabha from Kannauj in a by-election in 2000, defeating Akbar Ahmad Dumpy by over 58,000 votes.
During his first term as MP, Yadav served as a member of the Committee on Ethics from 2000 to 2001, member of Committee on Science & Technology, Environment & Forests from 2002 to 2004, and earlier was also a member of the Committee on Food, Civil Supplies, and Public Distribution. During his first term, Yadav would become involved in various altercations with members and supporters of the Bahujan Samaj Party and the Bharatiya Janata Party. This notably included Akhilesh Yadav allegedly being attacked by supporters of Ajay Yadav in Behva in 2002, and Akhilesh Yadav rushing and then pushing Ashok Chandel of the BSP in the Lok Sabha after Chandel called Mulayam Singh Yadav a "chor" (transl. thief) in 2003. Akhilesh Yadav represented the Samajwadi Party at a Track-II diplomatic conference between Indian and Pakistani parties in Islamabad in August 2003.
Yadav was appointed president of the Samajwadi Party's youth organisations in 2002. In his role as president of the SP's youth organisations, he criticised both the Bharatiya Janata Party government in New Delhi and the Bahujan Samaj Party government in Lucknow for their education policy, which Yadav stated would "deprive many students from pursuing higher studies".
In 2004 he was elected as a member of the 14th Lok Sabha for a second term. During his second term as MP, he was at varying points member of the following committees: the Committee on Urban Development, the Committee on Provision of Computers for MPs, Offices of Parties, Officers of Lok Sabha Secretariat, the Committee on Science and Technology, and the Committee on Environment and Forests.
Yadav was appointed Uttar Pradesh party chief for the SP by his father in 2009. In that year's general elections, he contested and won elections in both the Kannauj and Firozabad Lok Sabha constituencies. Deciding to keep his seat in Kannauj, he resigned from his position of MP for Firozabad, and the SP selected his wife, Dimple Yadav, to run to replace him. Dimple Yadav would, however, lose the by-elections to Raj Babbar of the Indian National Congress. This would occur after Rahul Gandhi directly campaigned for Raj Babbar, which was described by The Times of India as being in violation to the "unspoken heartland rule of big-wigs skirting around each other's electoral turf." The day after Dimple Yadav's defeat, Akhilesh Yadav would declare the beginning of a political rivalry with Rahul Gandhi, stating "till now, the SP-Congress battle was limited to seniors. But it is the first time that Rahul came here and campaigned against us. It is the beginning of a Rahul vs Akhilesh contest".
From 2009 to 2012, Akhilesh Yadav served as a member of the 15th Lok Sabha. During this period he was a member of the following committees: Member of the Committee on Environment and Forests, Committee on Science and Technology, and the JPC on the 2G spectrum case. On 10 March 2012 he was appointed leader of the Samajwadi Party in Uttar Pradesh. On 15 March 2012, at the age of 38, he became the Chief Minister of Uttar Pradesh, the youngest to hold the office.
In May 2012 Yadav resigned from the Kannauj parliamentary seat to further serve as the Chief Minister of Uttar Pradesh after his party won the Assembly elections. In the same month he became Member of the Uttar Pradesh Legislative council. In the 2017 Assembly elections, the SP-Congress Alliance headed by Yadav was unable to form the government. He submitted his resignation to Governor Ram Naik on 11 March.
The 2019 Indian general elections and 2022 Uttar Pradesh Legislative Assembly elections saw Yadav being elected to the parliament and state assembly simultaneously, with Yadav later retaining his state assembly seat, and thereby submitting his resignation in the Lok Sabha.
In the 2024 Indian general election Yadav was elected to the 18th Lok Sabha from Kannauj.
This victory marked a significant return to the Lok Sabha for Yadav, who had previously represented the Kannauj constituency in 2000, 2004, and 2009.