Essex missed out on a place in the Royal London Cup final as Glamorgan booked their first List A showpiece since 2013 with a thrilling five-wicket win in Cardiff.

Joe Cooke was the star of the show for the Welsh side on a belting Sophia Gardens wicket as he took five for 61 with the ball and guided Glamorgan home by striking an unbeaten 66.

While England’s batsmen toiled against India at Lord’s, former Test captain Alastair Cook top scored with 68 from 66 balls as Essex posted an impressive total of 289 all out from 49.4 overs.

Glamorgan’s bowlers underperformed on the whole despite Cooke’s wickets, although Michael Hogan and Andrew Salter were notable exceptions.

Hamish Rutherford (67) and Nick Selman (59) impressed for the home side in reply, but the game was won by a stunning, unbeaten stand of 111 between Cooke and Tom Cullen (41 not out).

Glamorgan will now face either Durham or Surrey – who play their semi-final on Tuesday – at Trent Bridge on Thursday.

Glamorgan chose to insert Essex so the last thing they would have wanted was a century stand for the first wicket from away openers Josh Rymell and Cook.

Hogan continued his fine Royal London form with a dangerous early spell, but Essex weathered the storm and Cook gradually got on top.

He was helped by Glamorgan committing the ultimate crime of bowling too short and feeding Cook’s favoured cut shot, although the 36-year-old also drove impressively off the front foot.

Dunmow Broadcast: Sir Alastair Cook of Essex in batting action against GlamorganSir Alastair Cook of Essex in batting action against Glamorgan (Image: ©TGS Photo tgsphoto.co.uk +44 1376 553468)

Cook went to 50 from 49 balls with 10 fours thanks to a trademark off-side drive. Essex’s 100 came up after just 19 overs before Nelson struck when Cook was stumped off a Steven Reingold wide. It was a sharp bit of work by Glamorgan wicketkeeper Cullen.

Rymell had been more circumspect than Cook before he was caught off the bowling of Cooke for 44. Cooke also grabbed the wicket of Tom Westley, caught at short cover for a quickfire 31.

Dunmow Broadcast: Josh Rymell in batting action for Essex against GlamorganJosh Rymell in batting action for Essex against Glamorgan (Image: ©TGS Photo tgsphoto.co.uk +44 1376 553468)

Hogan (1-21) and Salter (1-29) bowled impressively, but their fellow Glamorgan bowlers leaked too many runs both sides of the wicket. There were also 26 extras.

Paul Walter smashed James Weighell for six over long on in his 50 but was caught and bowled by Lukas Carey after he skied the ball into the air.

Dunmow Broadcast: Paul Walter in batting action for Essex against GlamorganPaul Walter in batting action for Essex against Glamorgan (Image: ©TGS Photo tgsphoto.co.uk +44 1376 553468)

Feroze Khushi also hit a maximum off Salter but went next ball as Cullen took a juggling catch, although Essex’s total was still an imposing one.

Rutherford and Selman have had fine Royal London campaigns and Glamorgan’s openers made a solid start. New Zealander Rutherford even hit Ben Allison out of the ground.

Glamorgan raced to 67 without loss from just eight overs as Rutherford took 22 from one Allison over by smashing four straight fours and then a six. He went to 50 from just 29 balls.

Rutherford finally went for 67 from 44 balls when he skied Simon Harmer and Walter took the catch.

Glamorgan captain Kiran Carlson joined Selman and the pair kept the run rate ticking over. It took a smart low catch by Rymell to dismiss Carlson for 36. Billy Root immediately followed for just three.

Selman went to an excellent 50 but it looked like all Glamorgan’s hopes revolved around him.

So, when Reingold was cleaned up having a hack at Aron Nijjar and Westley got the key wicket of Selman caught behind, Essex moved into the driving seat.

Cullen and Cooke started slowly but they ran well between the wickets to leave Glamorgan needing 67 runs from the final 10 overs. It set up an enthralling finale.

Cullen could have been run out and also smashed one ball which hit square leg umpire Ian Gould when a boundary looked certain.

But in the end, it mattered little as the outstanding Cooke went to a run-a-ball 50. When he and Cullen took Jack Plom’s 47th over for 16 runs, there was only ever going to be one winner.

Cooke won it with a six and punched the air in delight as a thrilling game came to a close.

Westley said: “It’s disappointing and never nice to lose a knock-out game. The cricket we have played this season has been great and it’s a huge positive for us to reach a semi-final.

"I’m really proud of the guys in the changing room for their effort. We thought it was a good wicket and a good score at halfway. I don’t buy it that there is nothing left to play for now this season.

"Every time you cross the line as a professional in the Essex shirt you play for pride and you have to have pride in your performance. It would have been nice for me to score some more runs this season.”