Australia were bowled out for 210 on the morning of the second day in Mackay, handing them a 146 run lead in the first innings, but the day belonged to Shoriful Islam, who finished with the best figures ever recorded by a Bangladesh pace bowler.
Taijul Islam wrapped up the innings, having Josh Hazlewood caught behind point by Shadman Islam for six to complete the tail end collapse.
Hazlewood had briefly counter attacked with a boundary before falling, while Nathan Lyon remained unbeaten on 32, having earlier smashed a towering six over square leg off Taskin Ahmed.
Taskin's first over of the day proved costly, leaking 17 runs including that maximum, a no ball and a further boundary, as Australia's lower order squeezed out valuable extra runs before the innings finally folded.
The morning's defining moment, though, arrived earlier through Shoriful. He struck with a searing inswinging yorker that trapped Cameron Green lbw, leaving him on all fours as the ball clipped the toe of his boot.
Najmul Hossain Shanto sent the shout upstairs without hesitation, and replays confirmed the ball was crashing into middle stump, plumb enough to leave no doubt.
The wicket, greeted from the commentary box as reminiscent of "Wasim Akram in the 1990s", completed a historic haul of seven for 48, eclipsing Shahadat Hossain's six for 27 against South Africa from 2008, figures that had stood as the best return by a Bangladesh seamer for eighteen years.
It marked the first time a Bangladeshi pace bowler had taken seven wickets in a Test innings. Only three bowlers before him had ever crossed six wickets for Bangladesh, and all three were spinners.
Shoriful's effort also stands as the best figures recorded away from home by any Bangladeshi bowler, surpassing Taijul's own seven for 138 against Zimbabwe in the one off Test this past June, and Shakib Al Hasan's six for 33 against the West Indies back in 2018.
Australia had resumed the second day still holding two wickets in hand, with their lead already past 100. Shoriful, needing just one more wicket for the pace bowling milestone, opened the bowling alongside Hasan Mahmud.
Hasan leaked a few boundaries early on and was taken out of the attack by Shanto, with Taijul brought on from the other end to support Shoriful. The pair squeezed Australia without immediate reward as the lead stretched to 122 after 47 overs.
Green had proved Bangladesh's stubbornest obstacle, unbeaten on 51 from 81 balls overnight alongside Lyon's 10, before Shoriful finally found the breakthrough his side had been chasing since the previous evening.
The opening day itself had been a story of two left arm pacers. Mitchell Starc struck with the very first ball of the match, removing Shadman, and went on to claim six for 12 as Bangladesh collapsed to 64 all out. Eighteen wickets fell in total on the day, with Starc and Shoriful accounting for twelve of them between them.
Shoriful, who had never previously taken four wickets in a single Test across his first thirteen matches, kept Bangladesh alive almost single handedly with his overnight six for 35, before adding a seventh on the second morning to finish with career best figures of seven for 48.
Cameron Green top scored for Australia with 67 before falling to Shoriful, while Taijul, Miraz and Taskin shared the remaining wickets at one apiece. Hasan Mahmud, the hero of the Darwin Test, went wicketless in the innings.