Dubai: An inspector was cleared of impersonating a policeman on Sunday and jailed for six months for having consensual sex with a woman whom he was accused of raping.

The 24-year-old Moroccan hairstylist had just left a nightclub where she had been drinking and clubbing with friends when the 23-year-old Jordanian inspector ordered the taxi carrying them to pull over.

Once the 23-year-old presented an ID, the hairstylist and her friend stepped out of the taxi and walked away in March 2014.

The man asked the Moroccan friends to give him their identification cards and demanded the friend, a waiter, to leave once he realised that he resides in Dubai.

Attempting to wait and help out his 24-year-old friend, the Jordanian ordered the waiter to leave and told him that the hairstylist will go with him to the police station for being drunk and because she a resident of another emirate.

The woman alleged that the 23-year-old forced her into his car, drove to a sandy area behind the buildings where she lives and had forced sex with her.

The Moroccan refrained herself from reporting to the police for two days that she had been raped because she was drunk, said records.

Police identified the Jordanian from her phone. He had snatched her mobile during the incident and dialled his number in order to save her number.

On Sunday, the Dubai Court of First Instance jailed the 23-year-old man for having consensual sex with the woman.

The accused contended in court he had paid sex with the Moroccan woman.

Presiding judge Mohammad Jamal also acquitted the defendant of posing as a policeman due to lack of strong evidence.

The accused will be deported after serving his punishment.

The hairstylist alleged that the man stopped their taxi and claimed to be a policeman.

“I was drunk and when he noticed that, he took my identification and then ordered me to sit in his vehicle. He then drove his car to a poorly lit area where he slapped me and pulled my hair when I refused to take off my clothes. Then he yelled and pulled my hair again and I had to remove my clothes because I was petrified. Then he raped me, left me outside the car and drove away. My friends urged me to report the matter to the police … I did so after two days because I was still drunk,” she testified to prosecutors.

A police lieutenant said the defendant told him during questioning that he had agreed to have paid sex with the Moroccan woman.

“He said he met her outside the nightclub and agreed to have sex with her for Dh1,000. Then she complained that he raped her because he didn’t pay her the money,” he told prosecutors.

The primary ruling remains subject to appeal.