The mother of the five-year-old ‘Christian’ girl who complained her daughter had been placed with Muslim foster carers was herself born into the Islamic faith.

Court documents released on Wednesday show the girl’s maternal grandparents “are of a Muslim background but are non practising”.

Her mother had protested that her daughter is a Christian and should never have been placed with devout Muslim foster parents.

The dispute has caused a furore amid allegations the child’s foster carers had taken a necklace from her that contained a cross and refused to allow her to eat her favourite meal - spaghetti carbonara - because it contained pork products.

Tower Hamlets Council, which had taken the child into care after concerns for her safety were raised by police, said it did not recognise the claims.

The court papers show the girl was placed with foster carers who were “not culturally matched” because of the urgent need to find a safe home for her.

On Wednesday, Sir Martin Narey, the Government’s official adviser on fostering, intervened to insist it would be wrong to ban carers from looking after children just because they were a different religion or ethnicity.

Sir Martin told The Telegraph he will publish a fostering report at the end of the year which will make ethnicity and religion of carers a ‘secondary’ issue. Sir Martin said: “Skin colour and religion do not matter in 2017.”

The eight-page written order published on Wednesday shows the child was taken into the care of social services on March 10th after police intervention. It is understood the mother suffers from alcoholism and a possible cocaine addiction and had been arrested for prostitution.

Judge Khatun Sapnara ruled the court order made on Tuesday be published to clear up confusion over the complex case.

She will now consider whether to allow the grandmother to take the child abroad to live. The grandmother wants to return to her country of origin, according to the court documents.

There had been complaints that the child had been placed with a foster family that did not speak English - a claim vehemently denied by the council. The court order suggested the girl’s foreign-born grandmother needs a translator.

The order shows that Tower Hamlets applied for the child to be placed with her grandparents - after a six months with foster parents - and that the judge agreed.

The order states: “Documents including the assessment of the maternal grandparents state that they are of a Muslim background but are non practising. The child’s mother says they are of Christian heritage.”

The mother first complained about the foster placement some months ago but a court hearing in June heard that an independent court-appointed guardian had visited the carers and found the child “is settled and well cared for by the foster carer”.

The local authority then went back to court in August to apply for the child to be placed with her grandmother in the “long term”.

The mother, according to the court order, opposed the council’s plan. According to the court documents “the child’s biological father has not been located”.

Tower Hamlets Council said it welcomed the decision by the family court to publish the order and that “it supports our position that we always had the child’s best interests at heart”.

Debbie Jones, director of Children’s Services at Tower Hamlets, said: “As a local authority, our number one priority with foster care is ensuring a child is placed in a safe and loving environment.

“Our foster carers are qualified people from different backgrounds, with vast experience of looking after children. They represent the diverse make up of our borough which is a place where people of all backgrounds get on with one another.”