Mweri Mangi was arrested at Bamba in Kilifi County after he was busted with a minor in his residence.
They were both apprehended following a tip off from the primary school pupil's parents, who told police that Mr Mangi had eloped with her.
They were locked up at Bamba Police Station ahead of Mr Mangi's arraignment on defilement charges.
While the two were in police cells, the minor's mother visited, probably to seek her release since she was not to be charged with any offence.
According to police reports, however, Constable Winfred Kinya Henry, who was manning the cells on September 17, 2018, asked the woman to give her Sh5,000 for the girl to be freed without charges.
The woman is said to have given some money, unaware of the fact that the minor had not committed an offence.
Police officers who were once against tipped off arrested Ms Kinya for allegedly receiving a bribe from the woman.
The police constable was charged in Mombasa County on Wednesday.
Ms Kinya is accused of asking the woman for that amount of money with the intention of releasing her child from police custody.
She is further accused of receiving a Sh3,000 bribe from the complainant in order to release the minor.
The prosecution said she committed the offences knowing they would affect her work. The prosecution also noted that the girl is a witness in the the case, number 74/2018, in which Mr Mangi is charged with defiling her.
Mr Mangi has denied charges of defiling the minor in Bamba between September 1 and 13.
Ms Kinya denied the charges before Mombasa Chief Magistrate Edna Nyaloti and was released on Sh20,000 cash bail.
Ms Nyaloti noted that she is not a flight risk as she is a serving police officer.
She asked to be supplied with copies of the charge sheet, witness statements and any other documentary evidence the prosecution will rely on.
The case against the police officer will be mentioned on June 3.