Then to apply for visas, they traveled twice to Kabul - site of a bombing on May 31 that killed 150 people - and their applications were rejected.
"I am very happy".
However, the move sparked an worldwide outcry and only after U.S President Donald Trump reportedly stepped in on Wednesday night (Kabul time) was the initial decision overturned and visas were ordered to be issued.
However, when Trump came to know about the case, he intervened and made a decision to grant the visas to the girls. "This is such an important trip for us", said 15-year-old team member Lida Azizi, who was excited at the prospect of being able to compete.
The six girls will now be able to participate next week against entrants from 157 countries. On Wednesday a White House spokesperson confirmed Trump had intervened and ordered officials to grant visas to the girls.
All six girls packed into a small taxicab to head to the U.S. Embassy with their passports in hand to get their documentation for entry into the U.S.
Homeland Security Department spokesman David Lapan said Wednesday the U.S. Citizenship and Immigration Services approved a State Department request for six girls from the war-torn country to be allowed in, along with their chaperone, so they can participate in the competition.
The group of six, from Herat, Afghanistan, was twice denied visas to attend the Washington, D.C., event, the only team from 162 nations whose application for entry to the United States was rejected by the State Department.
As per a report by AP, girls' applications for USA visas had been denied twice.More news: Caitlyn Jenner: Rob Kardashian Was "Stupid" for Blac Chyna Rant
Rather than champion this story as a success, we should look long and hard about why some travelers have to go through astounding toil just to enter this country.
There isn't an explanation as to why the team was initially rebuffed, but they are now bound for the event thanks to the DHS allowing them to have "parole" status, which means they can enter the United States precisely because of the public benefit their mere presence would garner for the nation, via the report.
Mehraban says: "It's a happy moment for our team".
"It's important for Afghan women to be able to share their ideas", said Mehraban.
Members of the Afghan robotics team on their arrival at Hamid Karzai International Airport.
"A limited version of Trump's travel ban - temporarily barring refugees and visitors from Iran, Libya, Somalia, Sudan, Syria and Yemen - recently took effect, after the US Supreme Court allowed it to be enforced pending a full hearing in October".
Some might see things differently as a group of gifted people had to have the President of the United States intercede in the proceedings just to compete.
Speaking at the airport Thursday, another team member Rodaba Noori said: "This support by the U.S president means support for us and for all women in Afghanistan".