Career
Razali was elected to federal Parliament in the 2004 election. In April 2009, he was appointed as Deputy Minister for Youth and Sports in the government of Najib Tun Razak. In the 2013 election he was returned to Parliament.
His margin of victory was reduced significantly by a drop in ethnic Chinese support for Barisan Nasional: the Muar electorate was approximately 35% Chinese.
He remained a deputy minister after the election, although was shifted to the Prime Minister"s Department.