Hasan joined the
Pan-Malaysian Islamic Party (PAS) after leaving public service and subsequently became a vice-president in 2001. He was elected a central working committee member in 2009 and was the party's leader in Selangor until 2011. In the
1999 general elections, Hasan contested two seats: the
Sungai Burung state seat in Selangor and the
Parit Buntar parliamentary seat in
Perak, and won both. However, he lost both of them in the
next elections, as PAS suffered heavy losses throughout the nation. In
2008, Hasan won the
Gombak Setia state seat in Selangor. PAS went on to form a coalition government with
Parti Keadilan Rakyat and the
Democratic Action Party, and Hasan was appointed as a state executive councillor (EXCO), holding the Islamic Affairs, Malay Customs, Infrastructure and Public Amenities portfolio. During his tenure, Hasan has openly criticised the state government on a few occasions, and has been accused of harbouring ambitions of becoming
Menteri Besar of Selangor himself. In 2011, he broke ranks with the Pakatan Rakyat state government again after speaking out in support of a raid on a church event. In December 2011, Hasan criticised PAS in UMNO-owned media for purportedly abandoning its Islamist credentials. On 8 January 2012, the PAS central working committee sacked Hasan from the party for "persistently going against [its] stand." He was also dismissed from the state EXCO. After his dismissal, he officially founded on 21 February 2012
Jalur Tiga (JATI) a
non-profit organisation (NGO) on the pretext of defending the
Islam religion,
Malay dominance and
Malay Rulers, for his politic movement but to no success. ==Election results==