Adil Rashid then trapped Ishant Sharma leg before wicket and it was left to Stokes (4-40) to finish the job, ending Hardik Pandya's determined knock to put England 1-0 up in the five-match series.
With the match hanging in the balance, India needing 84 to win and England five wickets, Anderson had got England off to the perfect start with the wicket of Karthik (20) with the sixth ball of the day, Dawid Malan going some way to making up for his three dropped catches in the match with a low grab at second slip.
While Kohli remained though, India were still firmly in contention and together with an unusually restrained and disciplined Pandya, he gradually chipped away at the runs required.
SKY News.