Pan-Malaysian Islamic Party
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.