Murali Vijay on 64 and Cheteshwar Pujara on 50 put together an unbeaten 107-run stand for the second wicket to gain control of proceedings.
Spinners Ravindra Jadeja and Ravichandran Ashwin starred for India after sharing nine wickets to help bowl out the visitors for 262 in their first innings.