Afghanistan coach Jonathan Trott is stood on the boundary rope soaking it all in, while his players go crazy in the dugout.
They are having to compose themselves to go out to the middle to shake hands with the Pakistan players and support staff.
Pakistan coach Mickey Arthur looks very dejected.
Post update
Geoff Lemon
BBC Test Match Special commentator
Afghanistan's captain flicks the ball away, they don't cross, it doesn't matter. Afghanistan have beaten Pakistan. They said they wanted to make a semi-final and they might well do. Take a bow.
BreakingAfghanistan win by eight wickets
They've done it!
What a chase by Afghanistan. It has been so mature.
It is their record chase in an ODI and their first 50-over win against Pakistan at the eighth attempt.
It is just Afghanistan's third World Cup win after successes over Scotland in 2015 and England in 2023.
Afg 282-2
The scores are level.
Afghanistan, ranked ninth in the world, are one run away from shocking second-ranked Pakistan.
Afg 281-2
Sliced down to third by Hashmatullah Shahidi for a single.
Two needed from eight.
Post update
Carlos Brathwaite
Ex-West Indies all-rounder on BBC Test Match Special
Can we get a last over finish here?
Afg 280-2
Rahmat Shah takes a single out to deep cover.
Three more required from nine balls.
Afg 279-2
Defended again by Rahmat Shah.
Four needed from 10 balls.
Afg 279-2
Rahmat Shah blocks the first ball.
Four needed from 11 balls.
Post update
Shaheen Afridi is going to bowl the penultimate over.
Post update
Geoff Lemon
BBC Test Match Special commentator
They've never beaten Pakistan but tonight looks like the night for Afghanistan.
Afg 279-2
Need 4 from 12 balls
This has been such a mature chase from Afghanistan. Even when dots have built up they haven't shown any signs of panic or rashness.
They are a boundary away.
Post update
Geoff Lemon
BBC Test Match Special commentator
Slammed down the ground! Massive hit! Rahmat Shah is smashing Afghanistan towards victory, one more of those would seal it.
Afg 278-2
Need 5 from 14 balls
Shotttt!
Rahmat Shah stands there and just plants Hassan Ali back over his head for six.
Jonathan Trott can barely believe it in the Afghanistan dugout.
Post update
Geoff Lemon
BBC Test Match Special commentator
You'd have to be tempted to bring Rashid Khan next in to bat if needed. If you are looking for a ball one striker, that is it. But if you stick to your original plans, Azmatullah Omarzai or Ikram Alikhil is the way to go.
Afg 272-2
Need 11 from 18 balls
Afghanistan take eight off Shaheen Afridi.
They need just 11 from 18 balls.
A first ODI win over Pakistan is close.
Post update
Geoff Lemon
BBC Test Match Special commentator
That would've been a good result in a Test match, but there's no-one in the cordon in an ODI game now.
Afg 269-2
Need 14 from 20 balls
Four more.
It is streaky, off the edge of Rahmat Shah but they all count.
Pakistan faces are starting to drop.
Afg 264-2
Need 19 from 24 balls
Afghanistan's running has been superb in this chase.
They pick up a couple twice off Usama Mir's over by getting their head down and running hard.
They are closing on just a third World Cup victory.
Post update
Mickey Arthur is shaking his head in the Pakistan changing room again.
Live Reporting
Callum Matthews, Ffion Wynne and Tom Mallows
All times stated are UK
Post update
Afghanistan coach Jonathan Trott is stood on the boundary rope soaking it all in, while his players go crazy in the dugout.
They are having to compose themselves to go out to the middle to shake hands with the Pakistan players and support staff.
Pakistan coach Mickey Arthur looks very dejected.
Post update
Geoff Lemon
BBC Test Match Special commentator
Afghanistan's captain flicks the ball away, they don't cross, it doesn't matter. Afghanistan have beaten Pakistan. They said they wanted to make a semi-final and they might well do. Take a bow.
BreakingAfghanistan win by eight wickets
They've done it!
What a chase by Afghanistan. It has been so mature.
It is their record chase in an ODI and their first 50-over win against Pakistan at the eighth attempt.
It is just Afghanistan's third World Cup win after successes over Scotland in 2015 and England in 2023.
Afg 282-2
The scores are level.
Afghanistan, ranked ninth in the world, are one run away from shocking second-ranked Pakistan.
Afg 281-2
Sliced down to third by Hashmatullah Shahidi for a single.
Two needed from eight.
Post update
Carlos Brathwaite
Ex-West Indies all-rounder on BBC Test Match Special
Can we get a last over finish here?
Afg 280-2
Rahmat Shah takes a single out to deep cover.
Three more required from nine balls.
Afg 279-2
Defended again by Rahmat Shah.
Four needed from 10 balls.
Afg 279-2
Rahmat Shah blocks the first ball.
Four needed from 11 balls.
Post update
Shaheen Afridi is going to bowl the penultimate over.
Post update
Geoff Lemon
BBC Test Match Special commentator
They've never beaten Pakistan but tonight looks like the night for Afghanistan.
Afg 279-2
Need 4 from 12 balls
This has been such a mature chase from Afghanistan. Even when dots have built up they haven't shown any signs of panic or rashness.
They are a boundary away.
Post update
Geoff Lemon
BBC Test Match Special commentator
Slammed down the ground! Massive hit! Rahmat Shah is smashing Afghanistan towards victory, one more of those would seal it.
Afg 278-2
Need 5 from 14 balls
Shotttt!
Rahmat Shah stands there and just plants Hassan Ali back over his head for six.
Jonathan Trott can barely believe it in the Afghanistan dugout.
Post update
Geoff Lemon
BBC Test Match Special commentator
You'd have to be tempted to bring Rashid Khan next in to bat if needed. If you are looking for a ball one striker, that is it. But if you stick to your original plans, Azmatullah Omarzai or Ikram Alikhil is the way to go.
Afg 272-2
Need 11 from 18 balls
Afghanistan take eight off Shaheen Afridi.
They need just 11 from 18 balls.
A first ODI win over Pakistan is close.
Post update
Geoff Lemon
BBC Test Match Special commentator
That would've been a good result in a Test match, but there's no-one in the cordon in an ODI game now.
Afg 269-2
Need 14 from 20 balls
Four more.
It is streaky, off the edge of Rahmat Shah but they all count.
Pakistan faces are starting to drop.
Afg 264-2
Need 19 from 24 balls
Afghanistan's running has been superb in this chase.
They pick up a couple twice off Usama Mir's over by getting their head down and running hard.
They are closing on just a third World Cup victory.
Post update
Mickey Arthur is shaking his head in the Pakistan changing room again.