Dhaka: Bangladesh spun their way to a first Test victory over Australia on Wednesday, with Shakib Al Hasan's second five-wicket haul of the match securing a memorable 20-run win inside four days at the Shere Bangla National Stadium.
Overnight batsman David Warner struck a belligerent 112 and added 130 runs with skipper Steve Smith but their efforts were in vain as the hosts took a 1-0 lead in the two-match series.
Chasing 265 to win, Australia lost five wickets in an eventful morning session, and whatever hopes they had were snuffed out when Shakib bowled Glenn Maxwell with the first delivery after the lunch break.
Pat Cummins scored an unbeaten 33 down the order to inject some drama but it was not enough in the end as Australia were all out for 244.
Bangladesh captain Mushfiqur Rahim was delighted to record the country's first victory over Australia.
"Obviously a great feeling, beating Australia," he said at the presentation ceremony.
"A great effort by the boys, especially Shakib and Tamim (Iqbal) were outstanding," he said of the duo, who featured in a 155-run partnership to rescue Bangladesh from a top order collapse in their first innings.
Shakib (5-85) celebrated his 50th test appearance by scoring 84 in the first innings and finishing with a 10-wicket match haul, a performance worthy of his status as the world's top-ranked test all-rounder.
He was the obvious choice for Man of the Match.
Resuming on 109 for two, Warner batted with calculated aggression, while Smith was content to play second fiddle as they continued the good work they had started on Tuesday evening with some generous assistance from Lady Luck.
Warner survived a review before the southpaw brought up his 19th Test century, a second in Asia. Then, when the opener was on 106, he pulled a Shakib delivery and the ball flew past leg-slip before the fielder could put his hands together.
Smith was on 28 when Tamim spilled him at mid-on but Shakib was lurking round the corner with his left-arm spin to change the complexion of the match.
Shakib first trapped Warner leg-before for 112 and, four overs later, had Smith caught behind for 37 to pile the pressure back on Australia.
On a turning track where their frontline batsmen have struggled against Bangladesh's three-pronged spin attack, Australia's Peter Handscomb, Matthew Wade and Ashton Agar all fell in quick succession prior to lunch.
Cummins hit a couple of sixes in his aggressive innings but ran out of partners after Taijul Islam trapped Josh Hazlewood leg-before.
Smith said failing to pile up runs in the first innings had made their job tougher.
"It was a great Test match, credit to Bangladesh the way they played," he added.
"We probably let ourselves down in the first innings with the bat, probably should have made a few more there. It was pretty difficult batting here in the second innings and I thought we did pretty well to get 240 in the end."
Australia will slip one place to fifth in the test rankings even if they level the series by winning the second Test in Chittagong from Monday. A second defeat would see them lose another place.
Bangladesh 1st innings: 260
(S. Al Hasan 84, T. Iqbal 71)
Australia 1st innings: 217
(S. Al Hasan 5-68)
Bangladesh 2nd innings: 221
(T. Iqbal 78; N. Lyon 6-82)
Australia 2nd innings
D. Warner lbw Al Hasan 112
M. Renshaw lbw M. Hasan 5
U. Khawaja c T. Islam b Al Hasan 1
S. Smith c Rahim b Al Hasan 37
P. Handscomb c Sarkar b T. Islam 15
G. Maxwell b Al Hasan 14
M. Wade lbw Al Hasan 4
A. Agar c&b T. Islam 2
P. Cummins (not out) 33
N. Lyon c Sarkar b M. Hasan 12
J. Hazlewood lbw T. Islam 0
Extras (b-7, lb-2) 9
Total (all out, 70.5 overs) 244
Fall of wickets: 1-27, 2-28, 3-158, 4-171, 5-187, 6-192, 7-195, 8-199, 9-228.
Bowling: Mehidy Hasan 19-3-80-2; Nasir Hossain 3-2-2-0; Shakib Al Hasan 28-7-85-5; Taijul Islam 19.5-2-60-3; Mushfiqur Rahim 1-0-8-0.
Umpires: Aleem Dar, Nigel Llong
TV umpire: Ian Gould
Match referee: Jeff Crowe