Leeds: West Indies ended the fourth day of the unexpectedly enthralling second Test requiring 317 more runs to win after England turned the contest firmly in their favour.
Having taken a 169 run first innings advantage, the tourists will be disappointed to find themselves facing a final day with the odds against them but credit for that must go to some fine lower order England batting.
England had managed only 258 in their first innings but their middle and lower order is their strength and combined to make 490 for eight before captain Joe Root decided to declare.
West Indies' opening pair survived the remaining six overs of the day, always a tricky task after a long day in the field, but it will take a most unexpected twist in the plot if they are to level the three Test series.
It has been a Test match with plenty of momentum shifts but the final session of the fourth day was when England finally grabbed a firm grip on proceedings.
Not for the first time this summer, Moeen Ali was the key figure, striking 84 off 93 balls, including 14 boundaries, as England turned a decent effort with the bat into what should be a match-winning score.
Moeen's partnership with Chris Woakes, who ended unbeaten on 61, put on 117 runs for the eighth wicket and that could well prove to be the difference between the two teams.
After losing Root for 72 in the morning session, a patient 61 off 186 balls from Dawid Malan and a more aggressive 58 from Ben Stokes gave England a decent platform.
Malan and Stokes put on 91 runs for the fifth wicket partnership before Stokes was well caught by Kraigg Brathwaite on the long-off boundary.
Spinner Roston Chase bowled Malan before picking up the crucial wicket of Jonny Bairstow (18), who dragged on when reverse-sweeping. There was fight left in the Caribbean team.
The young West Indies team that been dismissed as no-hopers in some quarters after their poor first Test display had once again shown determination to get back into the game but then Moeen took the attack to them.
The Man-of-the-Series from England's successful four-Test campaign against South Africa is clearly batting with great confidence and he made good use of the sweep shot against spin as well as the right judgement against seam.
Moeen will have plenty of work to do on the final day as England look to his off-spin to keep the pressure on once the new ball has worn off for James Anderson and Stuart Broad.
West Indies will resume on Tuesday on five without loss with openers Brathwaite and Kieran Powell knowing they need to make a strong start to avoid defeat.
England 1st innings: 258
(B. Stokes 100, J. Root 59; S. Gabriel 4-51, K. Roach 4-71)
West Indies 1st innings: 427
(S. Hope 147, K. Brathwaite 134; J. Anderson 5-76)
England 2nd innings
A. Cook c Dowrich b Holder 23
M. Stoneman b Gabriel 52
T. Westley c Dowrich b Holder 8
J. Root c S. Hope b Gabriel 72
D. Malan b Chase 61
B. Stokes c K. Brathwaite b Chase 58
J. Bairstow b Chase 18
M. Ali c K. Brathwaite b Bishoo 84
C. Woakes (not out) 61
S. Broad (not out) 14
Extras (b-13, lb-5, nb-12, w-9) 39
Total (8 wkts decl, 141 overs) 490
Fall of wickets: 1-58, 2-81, 3-94, 4-212, 5-303, 6-312, 7-327, 8-444.
Did not bat: J. Anderson
Bowling: S. Gabriel 26-3-125-2 (nb-10, w-5); K. Roach 24-8-95-0; J. Holder 33-10-95-2; R. Chase 32-5-86-3; D. Bishoo 25-1-67-1 (nb-2); K. Brathwaite 1-0-4-0.
West Indies 2nd innings
K. Brathwaite (not out) 4
K. Powell (not out) 1
Total (no loss, 6 overs) 5
To bat: K. Hope, S. Hope, R. Chase, J. Blackwood, S. Dowrich, J. Holder, K. Roach, D. Bishoo, S. Gabriel
Bowling: J. Anderson 3-2-3-0; S. Broad 2-1-1-0; M. Ali 1-0-1-0.
Umpires: Chris Gaffaney, Sundaram Ravi
TV umpire: Marais Erasmus
Match referee: David Boon