 Zakaria, who was the candidate for BN-UMNO, was elected state assemblyman for Pelabuhan Klang (N46) in the 2004 election.He took over from Dato' Teh Chang Ying (BN - MCA) who won the seat in the 1999 election.However, in the 2008 election, he was not selected as a candidate and was replaced by his daughter-in-law Roselinda Abdul Jamil, which she did not win.