David Warner struck his 19th Test century before all-rounder Shakib Al Hasan took three quick wickets to put Australia under pressure in the first Test in Dhaka on Wednesday.
At lunch on the fourth day, the visitors were 199-7, requiring another 66 runs to win with only three wickets remaining.
Glenn Maxwell was batting on 14 with Pat Cummins on two at the break.
More From This Section
Left-arm spinner Shakib brought Bangladesh back into the game with his triple strike after Warner hit 112 off 135 balls with the help of 16 fours and a six.
Shakib's spin partner Taijul Islam chipped in with two wickets to peg back the Aussies, who made 217 in their first innings in reply to Bangladesh's 260.
Australia appeared to be coasting towards their fifth consecutive win against Bangladesh when Warner and Smith resumed on 109 for two.
Warner, who was unbeaten on 75 overnight, reached the three-figure mark off 121 balls with a double off Taijul.
Shakib then trapped Warner leg before to give Bangladesh the first breakthrough of the day.
It also ended Warner's 130-run partnership with Smith, who was dropped by Tamim Iqbal on 29 at mid on. But he failed to make most of the reprieve, edging Shakib behind the wicket for 37.
Taijul then removed Peter Handscomb for 15 and Ashton Agar for two while Shakib added the wicket of Matthew Wade (four) to his kitty.
Disclaimer: No Business Standard Journalist was involved in creation of this content