US Customs and Border Protection officials detained a nine-year-old girl who was on her way to to school for more than 30 hours, despite her being a US Citizen.

Julia Isabel Amparo Medina and her brother Oscar Medina, 14, cross the border from Mexico to California every weekday to attend school in San Ysidro.

On Monday, the children were being driven by a family friend and her two children, when they reached standstill traffic at 4am.

To ensure that the children, who have US passports, made it to school on time, Michelle Cardenas told them to walk across the border, at which point she would order them an Uber.

However, Julia never made it to school, as she was detained by CBP officers who accused her of lying about her identity.

According to NBC 7, CBP officers reportedly told Julia that she did not look like the picture in her passport, and accused her of being her cousin Melanie.

Trump prototypes for Mexico border wall demolished in California Show all 20 1 /20 Trump prototypes for Mexico border wall demolished in California Trump prototypes for Mexico border wall demolished in California The prototypes for President Trump’s border wall are being demolished. AP Trump prototypes for Mexico border wall demolished in California The US Customs and Border protection had built the eight 30-foot tall steel and concrete models near San Diego on the US-Mexico border. Reuters Trump prototypes for Mexico border wall demolished in California A 2018 report from the Government Accountability Office found that the construction challenges presented by the four concrete models would be “extensive” and those presented by two of the other models would be “substantial”. Reuters Trump prototypes for Mexico border wall demolished in California It was intended that Mr Trump would choose his favourite of the designs after testing had been completed. AFP/Getty Trump prototypes for Mexico border wall demolished in California The President is yet to comment. AFP/Getty Trump prototypes for Mexico border wall demolished in California Each prototype cost $300,000 to $500,000 to build and they are being knocked down in order to make way for the San Diego Secondary Wall project which will see up to 14 miles of barrier being built to support the existing steel border fence. AP Trump prototypes for Mexico border wall demolished in California The new barrier will not employ the design of any of the prototypes, instead being built of the favoured steel bollards which make up the current section of the wall at San Diego. Reuters Trump prototypes for Mexico border wall demolished in California The new secondary barrier being built near San Diego. Reuters Trump prototypes for Mexico border wall demolished in California The rubble of one of the demolished prototypes. Reuters Trump prototypes for Mexico border wall demolished in California A steel wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A wall prototype made from a mix of steel and concrete AFP/Getty Trump prototypes for Mexico border wall demolished in California A wall prototype made from a mix of steel and concrete AFP/Getty Trump prototypes for Mexico border wall demolished in California A concrete wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A steel wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A concrete wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A concrete wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A concrete wall prototype AFP/Getty Trump prototypes for Mexico border wall demolished in California A digger approaches the prototype wall AFP/Getty Trump prototypes for Mexico border wall demolished in California Aerial view of the wall prototypes at the US-Mexico border after they were torn down AFP/Getty Trump prototypes for Mexico border wall demolished in California An aerial view showing Tijuana, Mexico on the left and the demolished wall prototypes on the right AFP/Getty

The nine-year-old also said agents told her if she admitted she was her cousin, she would be released sooner.

Under pressure from agents, Oscar reportedly signed a document that said his sister was his cousin.

Border agents also allegedly accused the children of smuggling and other crimes, before taking the nine-year-old into custody.

A CBP spokesperson told The Independent Julia provided “inconsistent information during her inspection” and was taken into custody so agents could “perform due diligence in confirming her identity and citizenship”.

When the children’s mother Thelma Galaxia found out her daughter had been detained, she called on the Mexican consulate for help.

Galaxia also said her son was told he would be taken to jail and charged with human trafficking and sex trafficking during the incident.

After more than 30 hours, Julia was finally released to her family at the San Ysidro port of entry.

In a statement, US Customs and Border Patrol defended the decision to detain the nine-year-old.

“CBP prioritises the safety of the minors we encounter,” a spokesperson said. “It’s important that CBP officials positively confirm the identity of a child travelling without a parent or legal guardian.”

The family was reunited after more than 30 hours (NBC 7)

The CBP spokesperson declined to share information regarding how its agents confirmed Julia’s identity, or why it took so long, telling The Independent: “Some specifics of our techniques for determining the true identity of a person crossing the border are law enforcement sensitive information.

“In addition, some details of this case are restricted from release due to privacy concerns.”

Support free-thinking journalism and attend Independent events