Queensland have pulled off the fifth-highest run chase in JLT Sheffield Shield history, reeling in 414 to defeat Tasmania by four wickets in the final session on Monday.
Captain Jimmy Peirson (75 not out) and No.8 Michael Neser (76 not out) put on an unbeaten 143 for the seventh wicket to see the reigning Shield champions clinch an improbable victory at Blundstone Arena in Hobart.
"We had to dig deep to get it to day four, and then to get a win is the stuff fairytales are made of," Peirson said.
"We knew if we could bat long enough on day four, we'd have a chance."
Test discards Joe Burns (74) and Marnus Labuschagne (78) got the chase started but the visitors lost 4-63 to have them teetering on the brink of defeat before Peirson and Neser got together.
It was the highest fourth-innings chase ever recorded in Hobart.
Queensland had squandered a 60-run first-innings lead after folding for just 107 in their first innings.
Queensland resumed day four at 2-164 and only lost four wickets for the day.
Riley Meredith (3-70) sparked the Tigers with wickets either side of lunch to have the Bulls on the ropes at 5-233, but their quicks couldn't find enough in a deck that flattened out after 18 wickets fell on day one.
Tigers coach Adam Griffith knew his side were in for a challenge on a pitch that had flattened out after 18 wickets fell on day one.
"It probably sums our season up so far," he said of the loss, admitting his side were about 60 runs short in their second innings.
"We had our opportunities and played some really good cricket but, when the chance was there to win the game, we couldn't quite grasp it."
Queensland were routed for 107 in the first innings in reply to Tasmania's 167.
The Tigers then posted 353, headlined by a century to Bailey, to set up a chase over four-and-a-bit sessions.
Bulls opener Matthew Renshaw fell early for an aggressive 27 from 24 balls before Burns (74) and Labuschagne (78) steadied with a 124-run stand late on day three.
The previous record fourth-innings chase at Blundstone Arena came in 1997-98, when Tasmania reached 3-401 needing 399 against Victoria.
Queensland's second win of the season keeps them in the hunt for a top-two spot. They six third behind Victoria and NSW.
Tasmania XI: Jordan Silk, Alex Doolan, Ben McDermott, Jake Doran, George Bailey, Matthew Wade (C) , Simon Milenko, Alex Pyecroft, Jackson Bird , Gabe Bell, Riley Meredith.
Queensland XI: Jimmy Peirson (c/wk), Joe Burns, Matthew Renshaw, Marnus Labuschagne, Charlie Hemphrey, Sam Heazlett, Jack Wildermuth, Michael Neser, Luke Feldman, Mark Steketee, Mitchell Swepson