Australia, who resumed the day on a precarious 18-3, were bowled out early in the final session for 217 to hand the hosts a 43-run first-innings lead.
By stumps they had increased that to an 88-run advantage for the loss of one wicket.
Shakib, who finished with 5-68 and also top-scored in Bangladesh's first innings with 84, was ably supported by off-spinner Mehedi Hasan.
Mehedi claimed three wickets for 62 including the prized scalp of skipper Steve Smith for eight.
Slow left-armer Ashton Agar ended a confident 43-run opening stand when he had Soumya Sarkar (15) caught by Usman Khawaja at long-on after several attempts.
Australia also had Agar to thank for helping get them close to Bangladesh's first innings total of 260 after their regular batsmen struggled against spin.
Agar, batting at number nine, made an unbeaten 41 and shared a crucial stand of 49 with Pat Cummins, taking Australia past the 200 mark after Shakib and Mehedi had the visitors on the ropes.
When he was on 11 Cummins survived a dropped catch by Shafiul Islam at cover off Shakib and was then reprieved by the third umpire after being given out caught behind.
Shakib finally bowled Cummins for 25 in the evening session and then had Josh Hazlewood caught by Imrul Kayes at short leg to end Australia's innings and complete his 16th five-wicket haul in Tests -- at least one against each of the nine Test teams he faced.
The 23-year-old took the attack to the opposition but ran out of partners.
Disclaimer: No Business Standard Journalist was involved in creation of this content
You’ve reached your limit of {{free_limit}} free articles this month.
Subscribe now for unlimited access.
Already subscribed? Log in
Subscribe to read the full story →
Smart Quarterly
₹900
3 Months
₹300/Month
Smart Essential
₹2,700
1 Year
₹225/Month
Super Saver
₹3,900
2 Years
₹162/Month
Renews automatically, cancel anytime
Here’s what’s included in our digital subscription plans
Exclusive premium stories online
Over 30 premium stories daily, handpicked by our editors


Complimentary Access to The New York Times
News, Games, Cooking, Audio, Wirecutter & The Athletic
Business Standard Epaper
Digital replica of our daily newspaper — with options to read, save, and share


Curated Newsletters
Insights on markets, finance, politics, tech, and more delivered to your inbox
Market Analysis & Investment Insights
In-depth market analysis & insights with access to The Smart Investor


Archives
Repository of articles and publications dating back to 1997
Ad-free Reading
Uninterrupted reading experience with no advertisements


Seamless Access Across All Devices
Access Business Standard across devices — mobile, tablet, or PC, via web or app
