Lagos, Nigeria (CNN) Nigerian professor Richard Akindele, accused of demanding sex from a female student, was sentenced to prison on Monday.

Akindele was convicted after pleading guilty to four criminal charges, including demanding gratification from a student and sexual coercion of a student, according to court documents seen by CNN.

Akindele had pleaded not guilty to the charges in earlier court appearances at the Federal High Court in Osogbo, southwest Nigeria. However, he changed his plea during his third appearance in court on Monday.

Akindele was sentenced to two years in prison for demanding sexual benefits from student Monica Osagie, two years for soliciting sexual benefits to improve her marks, one year for falsifying his age, and one year for altering evidence. The judge said his sentences would run concurrently, so he will serve two years.

Osagie, 23, was not in court on Monday but her lawyers told CNN she consented to a plea bargain made by Akindele, a requirement under Nigerian law.

Read More