Bangladesh fast bowler Ebadot Hossain picked up six wickets for just 46 runs to lead the Tigers to a stunning eight-wicket win over New Zealand on Wednesday.
The victory at Mount Maunganui was Bangladesh's first-ever Test win over against the Test world champion New Zealand.
It will be regarded among the biggest shocks in the history of Test cricket as one of the poorest performers in the longest format of the game snapped New Zealand's 17-match unbeaten streak on home soil.
While New Zealand had beaten all-comers at home since its last loss to South Africa in March 2017, Bangladesh had lost all 21 of its matches in New Zealand, Australia, South Africa and England since it started playing test cricket in 2000.
Ebadot, a former volleyball player who had taken 11 wickets in his 10 previous tests, led the way as the tourists dismissed the "Black Caps" for 169 early on Day 5 to leave them requiring 40 runs for a famous victory.
After losing both openers in the chase, it was left to captain Mominul Haque and experienced batsman Mushfiqur Rahim to usher Bangladesh to its first victory outside Asia.
A small band of flag-waving Bangladeshis on the Bay Oval boundary celebrated their country's first win in any format of the game in New Zealand, a victory that gave them a 1-0 lead in the two-match series.
"I can't describe it, it's unbelievable," Mominul said. "I couldn't sleep yesterday because of the pressure. It was very important to win this test match. I said previously that we need to win these test matches for our legacy."
New Zealand had resumed on 147-5 with a slender lead of 17 hoping to bat out the day but was quickly on the back foot when Ebadot clean-bowled Ross Taylor for 40 and removed Kyle Jamieson for a duck in his first two overs.
Taskin Ahmed (3-36) chipped in with his second wicket in the fifth over of the morning when he had all-rounder Rachin Ravindra caught behind for 16.
Tim Southee had his middle stump removed in Taskin's next over and Trent Boult departed for eight when he holed out in the deep to end the innings.
Shadman Islam scored the first runs of the chase but was caught behind for three before his fellow opener Najmul Hossain Shanto departed for 17 with victory in sight.
Mominul, who scored 13 not out, and Rahim resisted one of the world's finest seam attacks to get across the line, the latter scoring the winning runs with a boundary through backward point.
Bangladesh had lost all nine of its previous tests in New Zealand but was put into a winning position on day four when four of its top six batsmen struck 50s to take a first-innings lead of 130.
Man of the Match Ebadot drove home the advantage with a match-changing late spell in which he removed three batsmen at the cost of no runs soon after New Zealand had wiped out the deficit.
New Zealand, winners of the inaugural World Test Championship after beating India last year, is without regular skipper Kane Williamson for the series because of an elbow injury but was still expected to comfortably beat a young Bangladesh side.
"It was obviously a disappointing performance, we weren't at our best," said stand-in captain Tom Latham.
"Full respect to (Bangladesh), they certainly outplayed us throughout the five days."
The second match starts in Christchurch on Sunday.