 Ibrahim Mahmud's politics drifted towards those of PAS.His close association with PAS worried the government of Dr. Mahathir Mohamad.In 1978, Ibrahim contested the elections for the seat of Bayu-Baling as a PAS candidate.