A Senegalese student was detained on Monday after dressing up as a woman in order to take national exams on behalf of his girlfriend.

The student, who attends a university in the country's north, and his girlfriend "were arrested on Monday evening."

They will be tried on Thursday with his girlfriend for "exam fraud", their lawyer said Tuesday.

"The couple is to be "tried on (Thursday) August 5 for exam fraud and complicity in fraud", by the court of Diourbel," the prosecutor said.

The student, whose age was not disclosed, had moved to Diourbel to take the exams for his girlfriend, a student in a high school in this city, according to the prosecution.

Photos posted on social networks depicted him wearing a red dress with black patterns, wearing a veil with the same colors and a black shawl, to deceive the invigilators.

He was surprised on Saturday, the third day of the exam, during the English test, by the supervisors, who according to the press, noticed that something was wrong with his attire.

They then reported him to the police who arrested him and his girlfriend who was waiting for him in a hostel in the city, according to the same source.