Northampton 21 Connacht 15
Northampton kept alive their hopes of playing in the European Champions Cup next season with a hard-fought 21-15 victory over Connacht in the second play-off at Franklin's Gardens.
Saints now face a home clash with Stade Francais next Friday, and the winners will take the last remaining place in next season's competition.
Nic Groom and Harry Mallinder scored tries for the home side with Mallinder converting one and adding three penalties.
David Heffernan and Niyi Adeolokun scored tries for Connacht, with Craig Ronaldson converting one and kicking a penalty.
But there was to be no fairy tale ending for their head coach, Pat Lam, who takes over at Bristol for next season.
"I'm proud of the team today and I'm proud of what we've achieved over the past 4 years" - Pat Lam following his final game with Connacht pic.twitter.com/LVRouWeKeE— Connacht Rugby (@connachtrugby) May 20, 2017
Connacht suffered a pre-match setback when lock Andrew Browne withdrew with a calf injury to be replaced by a former Saint in James Cannon.
Within a minute of the start, the Westerners were hit with two further blows. First the hosts scored the opening try after Tiernan O'Halloran failed to collect an up-and-under from Groom. The ball ran loose for Luther Burrell to set up the try for Mallinder.
And then Connacht lost left wing Cian Kelleher to an injury, with Matt Healy coming on in his place.
Mallinder converted from the touchline before Connacht drew level when wing Adeolokun collected a kick-through from Ronaldson to show considerable determination and force his way over.
Ronaldson converted before Mallinder succeeded with a penalty to leave Northampton with a 10-7 lead at the end of the first quarter.
The home side lost Burrell, who limped off to be replaced by Rory Hutchinson, before Mallinder extended their lead with his second penalty.
Ronaldson replied with a penalty for Connacht before careless handling errors from Danie Poolman and O'Halloran gifted Saints a platform in the away side's 22 but the concession of needless penalties prevented the hosts from capitalising.
Northampton held a narrow 13-10 lead at the interval, which was when French referee Mathieu Raynal was forced to withdraw with an injury sustained in a hefty collision with Saints prop Alex Waller.
The opening period of the second half was featureless until a clever piece of play from Groom sent George North away on a 50-metre run, but the flowing movement was halted when Ben Foden put a foot in touch.
However, it was the catalyst for Northampton's best period of the match, with a strong burst from centre Nafi Tuitavake bringing the crowd to its feet.
After 56 minutes, Saints scored the crucial try when Ahsee Tuala powered over the gain line to create the space for Groom to dart over.
The home side brought on Tom Wood for Teimana Harrison in the back row before Heffernan finished off a driving line-out.
But a third penalty from Mallinder was just enough to see Northampton over the winning line, despite a late yellow card for their flanker Jamie Gibson.