India remain in control of the second Test in Hyderabad despite an Australian fightback on day three.
Resuming on 311-1 in reply to Australia's 237-9dec, India looked set to build an enormous first innings lead after Cheteshwar Pujara and Murali Vijay took their partnership to 370 - India's largest ever second-wicket partnership and the country's fourth biggest overall.
Pujara claimed his second double hundred in Test cricket when he advanced down the wicket to hit Glenn Maxwell for four but he was out soon after for 204 after being caught in the deep by Xavier Doherty when he aimed a hook shot at a James Pattinson bouncer.
Vijay was eventually dismissed for 167, caught by Ed Cowan at leg slip to give Maxwell his first Test wicket.
However, after resuming on 400-3 after lunch, they then suffered a collapse that included the loss of four wickets for seven runs to end on 503 all out.
MS Dhoni made a quickfire 44 but the tail crumbled as Australia managed to restrict India's still significant first innings lead to 266, Test debutant Maxwell finishing with 4-127.
In reply, Aussie openers Cowan and David Warner put on fifty for the first wicket and looked set to take the tourists through to the close.
But with the score on 56, Ravichandran Ashwin bowled Warner behind his legs for 26 and repeated the feat to remove Phil Hughes for a duck.
At stumps, Australia had reached 74-2 - still 192 behind with eight second innings wickets remaining.
India lead the four-match series 1-0 after an eight-wicket win in Chennai last week.