Shreyas Iyer’s attacking 92 and a solid effort by the bowlers put India in command of the pink ball Test against Sri Lanka on Saturday’s opening day.

Iyer made India, who lead the two-match series 1-0, claw back to 252 all out from a precarious 86/4 after they elected to bat first in Bengaluru.

Sri Lanka finished the day on 86/6, still trailing the hosts by 166 runs.

Wicketkeeper-batsman Niroshan Dickwella, on 13, and Lasith Embuldeniya, on nought, were batting at stumps after fast bowler Jasprit Bumrah ended a gritty knock by Angelo Mathews.

Mathews fell for 43 to become Bumrah’s third wicket after Kusal Mendis and Lahiru Thirimanne.

Bumrah and Mohammed Shami combined to reduce Sri Lanka to 28-4 as the pace duo made the pink ball swing and seam in the final session under lights.

Shami bowled skipper Dimuth Karunaratne for four and trapped Dhananjaya de Silva for 10 to raise the pitch of the weekend crowd at M Chinnaswamy Stadium which is operating at full capacity as the domestic Covid threat recedes.

For India, Iyer put on crucial partnerships including a 40-run fifth-wicket partnership with Rishabh Pant, who hit 39, to thwart the Sri Lankan spin attack.

Embuldeniya and fellow left-arm spinner Praveen Jayawickrama took three wickets each while De Silva took two with his off spin.

The left-handed Pant attempted to hit back after the top-order wobble as he smashed seven fours in his 26-ball stay before falling to Embuldeniya after tea.

Iyer, who survived dropped catches on 50 and 82, soon took over and finished with 10 fours and four sixes in his 98-ball knock.

He missed out on his century after being stumped off Jayawickrama and India’s innings folded in an extended second session as evening fell.

Earlier Virat Kohli made 23 and put on 47 runs for the third wicket with Hanuma Vihari as the pair attempted to rebuild the innings from 29-2.

Jayawickrama broke the stand after sending back Vihari for 31 and De Silva got Kohli trapped lbw in the next over to put India in trouble.

Kohli walked on to a rousing welcome by the fans at the stadium – home to his Royal Challengers Bangalore team – but was stunned by his dismissal.

The star batsman last scored an international century in India’s first-ever pink ball Test against Bangladesh in November 2019.

Skipper Rohit Sharma hit a six to signal his intent but fell to Embuldeniya after making just 15.

India have won both their previous two day-night Tests at home against Bangladesh and England last year. They lost to Australia in a floodlit Test at Adelaide in 2020.