Fergal O'Brien won the longest frame in professional snooker history to complete the line-up for the Betfred World Championship.
The 45-year-old beat England's David Gilbert 10-9 in the final round of qualifying at the Ponds Forge International Sports Centre in Sheffield.
He took two hours, three minutes and 41 seconds to take the deciding 19th frame, beating the previous record of one hour, 40 minutes and 24 seconds, set by Alan McManus and Barry Pinches at the 2015 Ruhr Open.
The Dubliner said afterwards: "Obviously in an ideal world you win a bit quicker than that.
"The balls went scrappy in the colours and I was so tired, double-checking everything and I'm so, so relieved.
"I'm looking forward to the draw now."
O'Brien, who has made nine previous Crucible appearances, had not made the main draw since 2010, and will learn his first-round opponent when the draw is made at 10am on Thursday.