An American couple of Asian descent who were tried for murder in Qatar after the accidental death of their Ghana-born adopted daughter have revealed the accusations against them were based almost entirely on racism.

Matthew and Grace Huang were initially convicted in the death of eight-year-old Gloria, who was found dead from malnutrition in their Doha home in early 2014 but it was later quashed.

Now living back in the U.S., the deeply religious Huangs say their races - and that of their African children - nearly got them executed in the tiny Arab oil state.

Held in Qatar: Matthew and Grace Huang were initially convicted in the death of eight-year-old Gloria (center left), who was found dead from malnutrition in their Doha home in early 2014

Matthew and Gloria Huang moved to Qatar after Matt's company, MWH Global, asked them to relocate there in 2012 to work on an infrastructure project related to the 2022 World Cup.

The Huangs told New York Magazine in a recent interview that the racist questioning began just after he rushed his daughter to a Doha hospital, where she was pronounced dead.

The Huangs were arrested in January 2013 after an autopsy found their eight-year-old daughter, Gloria, died of dehydration and cachexia, an irreversible loss of body mass. The couple said Gloria suffered from malnutrition-related diseases since they adopted her from Ghana at age 4.

'The first question was: ''Who is she?'' ''She's my daughter.''' recalled Grace, who said the interrogators refused to believe she was American because she and her husband are of Asian descent.

'They said, 'How did she die?' ' Matt recalled. 'They asked me that ten, 15 times.'

Shocking suggestions: The Huangs say Qatari officials refused to believe they'd choose to raise African children and instead suggested the couple wanted the children for their organs

Ezra and Jesse arrive at LAX with their grandmother after returning from Qatar where their parents were imprisoned

A month later, an investigator testified that the Huangs had adopted Gloria, along with her two adopted brothers 'most likely to either sell their organs or to conduct medical experiments on them.'

The investigator openly based his conclusion on the races of the Huangs and their kids, saying:

'The adoption process consists of searching for children who are good-looking and well-behaved,' he said, 'and who have hereditary features that are similar to those of the parents. But the children connected to this incident are all from Africa, and most of the families there are indigent.'

Matthew and Grace Huang had initially been charged with murder and were convicted of lesser child-endangerment charges last year in connection with Gloria's death, according to a support website for the family.

Those convictions were later thrown out by an appeals court.

The prolonged legal battle and months of separation from their boys following the death of their daughter took a serious toll on the Huangs, who are now living a very private life in rural Washington State.

Matthew no longer works for MWH and is still looking for work.

'I had a lot of dreams and hopes once,' he says, 'and now I'm in a phase where frankly I don't know the future.'

The Huangs are now suing MWH on claims the company relocated them to Qatar without warning them of hostility they could face as an interracial family living in the tiny Gulf Arab state.

However, no case will bring back their daughter, whose cause of death to this day isn't totally clear.

'I had to get to the point where I trusted that God is in charge,' Matt told NYMag.

Lost everything: Now free and living back in the U.S., the Huangs say they lost everything following their legal drama

U.S. Ambassador to Qatar, Dana Shell Smith, escorts the Huangs and their adviser Eric Volz to the airplane in December after their acquitta

When they were released from prison, the Huangs took over precaution not to be noticed while out in public, as they were barred from leaving Qatar

The pair are pictured smiling on their return flight to Los Angeles where they will be reunited with their sons