In 1999 Nasharudin left academia to take up the post of PAS's Secretary-General, making him the party's top administrative officer. He was hand-picked for the position by the party's President, Fadzil Noor, who had brought Nasharudin and other urban professionals into PAS during the 1990s to modernise the party. The 1999 general election saw Nasharudin's first election to Parliament for the seat of Yan in Kedah. In the 2004 general election, Nasharudin lost his parliamentary seat when he switched to run for the Besut seat in Terengganu. The following year, he became the Deputy President of PAS, making him the party's second-most senior elected leader after the President, Abdul Hadi Awang. Nasharudin's election to the position was a surprise as the senior cleric Haron Din had been slated to run against the incumbent, Hassan Shukri, but withdrew due to illness. In Haron's absence, Nasharudin defeated Hassan by a narrow margin. In 2008 general election, he returned to Parliament, winning the seat of Bachok in Kelantan. The following year, he won re-election as Deputy President of PAS, defeating two other candidates. His victory was seen by observers as a win for PAS' conservatives. However, he was ultimately defeated for re-election in 2011 by moderate candidate Mohamed Sabu. During his deputy presidency, Nasharudin had been one of PAS' leading proponents of entering talks with its long-time opponents United Malays National Organisation to establish a ruling Malay coalition between UMNO and PAS. After travelling to Gaza in 2013 with UMNO's former president and Malaysia's former Prime Minister, Najib Razak, he was expelled from PAS's governing Syura Council on 14 January 2013. Nasharuddin was subsequently sacked from PAS over statements critical of the party and for being absent from meetings in 2013. He did not recontest his parliamentary seat in the 2013 general election.
Social works
Having left both PAS's leadership and the Parliament in 2013, Nasharudin became chairman of the Nassar Foundation, a non-government organisation concerned with Islamic matters. From this position he spoke out against the use of the word "Allah" by Christians to describe God, and led protests against what he perceived as the lack of support from the Egyptian military government for people in Gaza. Nasharuddin was the former Executive Chairman and Chief Executive Officer of the Global Movement of Moderates Foundation, an organization established in 2012 by the then Prime Minister Najib Razak to promote moderation and to fight extremism. He was appointed the CEO in 2015 after he assisted Najib Razak to forge political alliances with PAS president Abdul Hadi Awang after the 2013 general election, replacing Saifuddin Abdullah who has left GMM and UMNO. Under his leadership, the organisation became irrelevant as extremism flourished and the foundation has been alleged to be failed and a wastage of public funds as it had contradicted its official policy of moderation. After the 2018 general election that saw the downfall of Najib Razak's Barisan Nasional government, Nasharudin announced the abolishment and disbandment of GMM on 30 July 2018. As of 31 July 2018, the foundation has ceased operations and is no longer active. Nasharudin was also a fellow of Yayasan Dakwah Islamiah Malaysia and a member of the Council of Islamic Chinese Relations.
Controversy
On 22 October 2019, Nasharudin was charged with 33 counts of criminal breach of trust and money laundering involving RM4 million. He was slapped with 3 charges under the Anti-Money Laundering, Anti-Terrorism Financing and Proceeds of Unlawful Activities Act for the offence of money laundering amounting to RM302,069.60. He also faces 30 other charges under Section 409 of the Penal Code for committing CBT involving RM3,721,683,80 between 2015 and 2018. Three of the CBT charges were in his capacity as CEO of GMM, while another 27 charges as chairman of Nassar Foundation. He was accused of spending public money allocated by the government for charities and for intellectual discourses meant to combat extremism on himself and his family instead; like on his son's wedding, daughter's loan, son's college fees and many more.