CHATTOGRAM, BANGLADESH, DECEMBER 16

Opener Shubhman Gill and Cheteshwar Pujara hit centuries as India moved into a favorable position to win the first cricket test after setting Bangladesh an improbable target of 513 on Friday.

Gill hit his maiden century and scored 110 from 152 balls, including 10 fours and three sixes, while Pujara was not out on 102 to steer India to 258-2 before declaring the second innings.

Bangladesh then navigated 12 overs successfully to reach 42-0 and reduced the deficit to 471 runs, with Najmul Hossain batting on 25 with Zakir Hasan on 17.

India racked up 404 in its first innings and then bowled Bangladesh out for 150, taking a 254-run lead.

Gill and captain KL Rahul gave the side a solid start in order to set a target out of Bangladesh's reach, adding 70 runs.

Pacer Khaled Ahmed had Rahul caught by Taijul Islam at fine leg with a short-pitched delivery on 23 to make the breakthrough.

But Gill and Pujara hardly faced any challenge from the Bangladesh attack, which was without the service of fast bowler Ebadot Hossain and Shakib Al Hasan due to back pain.

Gill brought up his maiden century off 147 balls, hitting offspinner Mehidy Hasan for a boundary through mid-on.

But he was dismissed by the same bowler shortly after that, trying to pace the innings.

"I personally thought it was a long time coming for me," Gill said of his century. "Today it was all about getting the difficult situation out of the way. For me, it was about how to play according to the field and then be able to score runs. It was very instinctive to hit a couple of boundaries and get to the milestone."

Pujara, who completed his half-century off 87 balls, took the anchor role and brought up the next fifty off just 43 balls as he raised his hundred off 130 balls with a boundary through mid-on from left-arm spinner Taijul Islam delivery.

It was the fastest of 19 test centuries.

India declared the innings right after his century, with Virat Kohli on 19 at the other end.

"Two days are in hand so we can't really have set plans. There's a lot of runs ahead of us. The batsmen just have to keep batting," Mehidy Hasan said. "The batters definitely have to bat with responsibility. The wicket is still quite good. It is important to execute properly. Good decision-making and a clear mindset is important."

Unlike the first innings, Bangladesh made a solid start as Najmul and Zakir punished the loose balls in disdain on a pitch that appeared to be good for batting.

In the morning session, India took two Bangladeshi wickets early with left-arm wrist spinner Kuldeep Yadav registering career-best figures of 5-40.

Bangladesh was able to add just 17 runs to its overnight total of 133-8.

Kuldeep had Ebadot Hossain stumped for 17 runs to complete his third five-wicket haul in test cricket.

Axar Patel (1-10) then wrapped up Bangladesh's innings, having Mehidy stumped for 25.