Opposition stalwart Anwar Ibrahim is free to contest in the by-election for the Permatang Pauh parliamentary seat, said Prime Minister Abdullah Ahmad Badawi today.