Kilmarnock leapfrogged Partick Thistle in the Scottish Premiership after beating the Firhill side at Rugby Park.
Chris Johnston's third goal in four games gave the hosts a half-time lead.
Thistle started the second half brightly and were rewarded when Kris Doolan guided home his seventh goal of the season past Killie's Craig Samson.
But in the 73rd minute Kris Boyd's crucial touch on Jackson Irvine's long-range shot ensured Kilmarnock took three valuable points.
The East Ayrshire side move up to ninth in the league thanks to Boyd's ninth goal of the season.
However, Allan Johnston's men also have to give a huge pat on the back to their goalkeeper Samson, who deterred a persistent Thistle attack on several occasions in the second half.
Alan Archibald's Jags have not won since a mid-October victory against Inverness Caledonian Thistle.
Despite struggling for goals for much of this season, the visitors looked relatively potent up front, as Doolan thumped in an early effort to check Samson was on song.
His opposite number Scott Fox was also called upon in the opening exchanges to deal with Boyd's shot.
Fox was beaten just before the break, though, unable to keep out Johnston's lovely left-foot strike into the corner.
Within five minutes of the restart Partick Thistle were back on level terms.
When the ball arrived at Doolan he shaped to shoot with his left foot, but let it run onto his right before finishing competently.
Thistle almost kicked on from that to score another. Kallum Higginbotham drifted past Killie right-back Sean Clohessy and cut-back for Steven Lawless, but the midfielder fired over when he should have done better.
Kilmarnock's Jackson Irvine has become known for a sweet strike from distance, and it was another one of those that created their winner.
His angled half-volley from 30 yards was diverted into the net by Boyd to send the hosts on their way to a first home win since October.
Thistle did not roll over and Higginbotham almost capped a wonderful move with an equaliser, but Samson stayed true to form to pull off a magnificent save from the winger's seven-yard shot.
Samson further frustrated the Jags when he kept out a Ross Forbes free-kick and the follow-up shot by John Baird.
- 01 Samson
- 16 Clohessy
- 02 Tesselaar
- 05 Irvine
- 29 Pascali
- 30 Ashcroft
- 07 Nicholson (Gardyne - 59' )
- 28 Slater
- 18 McKenzie
- 09 Boyd
- 10 Johnston (Winchester - 90' )
- 08 Clingan
- 12 Reguero
- 19 Ibrahim
- 21 Winchester
- 23 McKeown
- 25 Gardyne
- 33 Muirhead
- 01 Fox
- 16 McMillan
- 03 Taylor-Sinclair
- 08 Bannigan
- 06 Balatoni Booked
- 13 Gabriel
- 23 Higginbotham (Forbes - 82' )
- 07 Craigen Booked
- 09 Doolan
- 11 Lawless (Baird - 74' )
- 14 Elliott (O'Donnell - 80' )
- 02 O'Donnell
- 05 Muirhead
- 10 Forbes
- 12 Gallacher
- 17 Baird
- 20 Kerr
- 31 Wilson
Ref: Craig Thomson