The Afghanistan cricket team created history on Thursday, winning its first match in the World Cup after a nail-biting finish.

Chasing 210 for victory against Scotland in a group match, the Afghans were in danger of collapsing when 7 of 10 batsmen got out for just 97 runs, the BBC reported.

But player of the match Samiullah Shenwari pulled the team through with a classy individual effort, adding 96 runs of his own to inspire a monumental victory with just three balls left in the game.

The feat is remarkable considering the Afghan team’s history. Cricket only began in the war-torn nation 15 years ago, and many of the players grew up in the refugee camps in neighboring Pakistan after their families were displaced by the Soviet invasion of the 1970s.

While simply qualifying for their first World Cup was a huge achievement, the maiden victory at the tournament caps a fairytale run from the sport’s lowest tier in 2008 to its biggest stage less than a decade later.

The win will no doubt have sparked wild celebrations in Afghanistan, with the country’s president Ashraf Ghani praising the team in a tweet. It also had the global cricket fraternity showing its admiration.

Get The Brief. Sign up to receive the top stories you need to know right now. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Write to Rishi Iyengar at rishi.iyengar@timeasia.com.