The six girls were the only team of the 162 nations competing that had their application rejected, the Associated Press reported Monday. However, the State Department granted them entry Wednesday after having denied them twice, according to a statement from the competition organizers. Politico reported that their entry came at the urging of President Trump.

In a country where girls often face enormous educational barriers, the six Afghan girls had additional obstacles to be able to compete in the tournament. The team had to travel 500 miles to U.S. Embassy in Kabul each time they submitted a visa application for the competition, the Associated Press reported.

Competitors at this year's First Global Challenge robotics contest will be tasked with engineering projects related to providing access to clean water.

Four-year-old Jospeh Kushner, the son of first daughter Ivanka Trump and senior White House advisor Jared Kushner, rests in his mother's arms during the turkey-pardoning ceremony.
Chip Somodevilla, Getty Images

Jared Kushner and Ivanka Trump and their younger son Theodore on the South Lawn of the White House headed for the weekend at Camp David, on Aug. 25, 2017. She is wearing palazzo pants patterned with green fronds and a blue top with high chunky suede heels.
SHAWN THEW, EPA

Ivanka Trump, wearing a white off-the-shoulder midi dress by Reformation, walks to Air Force One with two of her kids, Arabella (L) and Theodore, to depart New Jersey, August 20, 2017, for return to Washington from vacation at Trump golf resort in Bedminster, N.J.
SAUL LOEB, AFP/Getty Images

Ivanka Trump and Kellyanne Conway (2nd R) arrive for a listening session with military spouses in the Roosevelt Room at the White House August 2, 2017. Trump wore a blush pink sleeveless dress with a ruffled hem, from her own fashion line.
Chip Somodevilla, Getty Images

President Trump joined his daughter at the Aug. 1, 2017, small businesses event at the White House, allowing a better look at Ivanka's outfit of white maxi skirt and sleeveless dark tank top.
JIM WATSON, AFP/Getty Images

Ivanka Trump attended a Medal of Honor ceremony in the East Room of the White House on July 31, 2017, wearing a black-and-white skirt and a white sleeveless top with a drape.
Pablo Martinez Monsivais, AP

Ivanka Trump met with U.N. Secretary General Antonio Guterres for a private lunch at his office at UN headquarters in New York on July 28, 2017, to discuss women's economic empowerment. She wore a sleeveless black dress, fitted and flared and with a colorful panel running down the center front.
Eskinder Debebe via AP

Ivanka Trump attended a news conference in the East Room of the White House on July 26, 2017, where President Trump touted a decision by Foxconn to invest $10 billion to build a factory in Wisconsin.
Mark Wilson, Getty Images

Ivanka Trump wore a blue lace dress by Jonathan Simkhai when she attended a joint news conference with President Trump and Lebanese Prime Minister Saad Hariri in the Rose Garden of the White House, July 25, 2017.
Alex Brandon, AP

Where's Ivanka? She's not been in the eye of media cameras in the past week of controversy at the White House over President Trump's widely condemned tweets against MSNBC co-host Mika Brzezinski. The president's daughter was last spotted on June 27, 2017 at the State Department for a report on human trafficking.
Jacquelyn Martin, AP

When President Trump and visiting Indian Prime Minister Narendra Modi spoke in the Rose Garden on June 26, 2017, Ivanka Trump was in the audience. She borrowed a style tip from stepmother and first lady Melania Trump: Oversize shades to protect against the strong sun.
Alex Brandon, AP

Ivanka Trump swinging daughter Arabella Kushner in the Rose Garden during the Congressional Picnic on the South Lawn of the White House on June 22, 2017, in Washington. She wore a flirty floral off-the-shoulder dress by eco-friendly fashion line Reformation, according to White House Wardrobe on Twitter.
Alex Brandon, AP

Ivanka Trump wore a rose-pink scuba crepe dress with ruffles from her own brand to an event to discuss American leadership in emerging technology in the East Room of the White House on June 22, 2017.
Olivier Douliery / POOL, EPA

Ivanka Trump paid another visit to the Capitol on June 21, 2017, to meet with House Republicans to discuss workplace and life balance issues. She wore a Dolce & Gabbana white skirt patterned with lavender sprigs, according to White House Wardrobe on Twitter.
Alex Wong, Getty Images

Ivanka Trump went up to the Capitol in a short-sleeved mini dress to meet with Sen. Marco Rubio (R-Fl) and other senators about her proposals for paid family leave, June 20, 2017.
Mark Wilson, Getty Images

Ivanka Trump wore an inky blue Jason Wu silk dress during the inaugural American Technology Council meeting in the Indian Treaty Room in the Eisenhower Executive Office Building next door to the White House, on June 19, 2017.
SHAWN THEW, EPA

Cameras caught the back of Ivanka Trump's Jason Wu dress as she arrived for the for the inaugural meeting of the American Technology Council in the Indian Treaty Room at the Eisenhower Executive Office Building next door to the White House, on June 19, 2017.
Chip Somodevilla, Getty Images

Ivanka Trump accompanied her father to Milwaukee on June 13, 2017 to visit a tech college and attend a political fundraiser. She wore wide-legged pants with a drawstring waist and a textured white sleeveless top plus chunky black heels.
Andrew Harnik, AP

From the campaign trail to Inauguration Day, Ivanka Trump has brought her sense of style to her role as special adviser in the White House. Here are her most memorable fashion moments.
Mark Wilson, Getty Images

Ivanka Trump wore a dress from Target - Victoria Beckham for Target - on June 5, 2017, when she joined an event in the East Room of the White House to promote President Trump's Air Traffic Control Reform initiative. The black shift decorated with huge calla lilies may have looked like it had a couture price but it was actually $35, according to the Target website.
Andrew Harnik, AP

Ivanka Trump wore a dramatically color-block black-and-white tank-top dress at the White House on June 2, 2017, during a bill signing ceremony in the Diplomatic Reception Room.
BRENDAN SMIALOWSKI, AFP/Getty Images

Ivanka Trump takes the stage during the 2016 Republican National Convention on July 21, 2016 in a simple pale pink dress from her own line and nude, strappy heels.
Rodney White, Rodney White-USA TODAY Sports

She keeps thinks simple again in a cream dress by Roland Mouret during the ribbon cutting ceremony at the grand opening of the Trump International Hotel in Washington, DC on Oct. 26, 2016.
MANDEL NGAN, AFP/Getty Images

She wore a Carolina Herrera sparkling, nude gown with long sleeves and a v-cut neckline to the Freedom Ball on Jan. 20, 2017 as part of her father's inauguration ceremony.
Chip Somodevilla, Getty Images

Getting down to business. Ivanka looks ready for action in a sleek, gray blazer during a joint press conference by President Trump and Israel's Prime Minister Benjamin Netanyahu in the East Room of the White House on Feb. 15, 2017.
MANDEL NGAN, AFP/Getty Images

She added some drama to a simple white Carolina Herrera dress with large, green earrings during a Gala Dinner at Deutsche Bank at the W20 summit on April 25, 2017 in Berlin, Germany.
Pool, Getty Images