[1] He was a founding member of the Prosperous Justice Party (PKS),[2] having been active in Islamic student organizations since his time at high school.
[5] Following the resignation of the district's PKS legislator Arifinto [id] in 2011 due to a scandal, Mardani was appointed to replace him and was sworn in on 19 October 2011.
[8] On 23 February 2017, Mardani was again appointed as a replacement to fellow PKS politician Sa'duddin (also of West Java's 7th electoral district)[9] in the People's Representative Council, as the latter had resigned to run in the regency elections of Bekasi.
[14] Throughout its life, the campaign generated significant controversy – with Mardani complaining about government interference after authorities limited his movements during a visit to West Kalimantan citing security reasons.
[15] After the presidential election concluded, Mardani disbanded the campaign, commenting that he made it "haram" for himself to speak of replacing the president.