Castleford fell short in a run chase against York Seconds as their promotion hopes suffered a blow with a 29-run defeat in the Hunters York Senior League’s Premier Division.
They were favourites to win at several stages of the game, but a century by Joe Ashdown ultimately proved crucial as it allowed York to set a challenging target.
In a game that swung one way then the other York started well enough when reaching 83-2, but a collapse saw them reduced to 110-6 and 132-7 with Cas skipper David Wainwright proving difficult to play.
However, an eighth-wicket stand of 76 between Ashdown (114) and Toby Giddings (37 not out) lifted the innings again, enabling York to finish on 208-8.
Wainwright finished with 4-46 from 15 overs while there was one wicket each for Connor Hyde, Connor Fisher, Liam Hyde and David Young.
Castleford’s reply began well with successive stands of 44 for the first two wickets between Luke Edwards (56, including eight fours), Edward Cole (13) and Fisher (15).
But wickets then went down at regular intervals until they were all out for 179 despite a battling 30 down the order from Wainwright and 35 runs by James Sykes.
Defeat saw Castleford slip back out of the promotion places, in third place, 10 points behind Studley Royal in second.
Castleford Seconds slipped down to third from bottom in Division Three Ebor as they were thrashed by 10 wickets at leaders Clifton Alliance after being bowled out for only 62.