In the 2006 general election, Hamim contested as one of six members including Desmond Lim Bak Chuan under the Singapore Democratic Alliance (SDA) banner in the Pasir Ris-Punggol GRC, raising issues such as transparency and accountability for Singapore's Reserves.
A year later in January 2013, Hamim joined the Democratic Progressive Party following an invitation from the party's founder Seow Khee Leng in December 2012 for its leadership renewal.