A professor, who allegedly made derogatory remarks against Union Minister Smriti Irani on Facebook, was sent to jail after he surrendered in a court in Uttar Pradesh’s Firozabad.

Professor Shaharyar Ali surrendered to Additional Sessions Judge Anurag Kumar and filed an interim bail application on Tuesday.

The judge, however, canceled the bail plea, after which the professor was sent to jail.

Firozabad Police had charged Shaharyar Ali, head of the History department at SRK College, in March for an alleged obscene Facebook post against the Women and Child Development Minister. The college had then served him with a suspension notice.

Earlier this month, the Supreme Court refused to grant protection from arrest to Shaharyar Ali.

An anticipatory bail plea filed by the professor was also rejected by the Allahabad High Court in May. Refusing to grant Ali protection from arrest, Justice JJ Munir said there was no material on record to show that the professor’s account was hacked.