Umno deputy president Datuk Seri Mohamad Hasan announced on Thursday that he will be contesting in the upcoming Rantau by-election.