Motherwell picked up their first win in seven matches against Kilmarnock to give them an ideal boost ahead of their Europa League tie against Levante.
The visitors opened the scoring when Jamie Murphy dribbled his way to goal, shooting from 14 yards.
Killie equalised on the half-hour when Gary Harkins met a Liam Kelly pass, his first-time strike hitting home.
Jamie Murphy met a Michael Higdon pass and rounded Kilmarnock keeper Cammy Bell to regain the advantage.
Killie's first real chance fell the way of Rory Boulding. Neat play from Gary Harkins on the edge of the box created the opening and, as the ball broke to the striker, his shot was deflected over the bar.
Motherwell's best early opportunity fell to Michael Higdon after nine minutes when he fired a volley from 22 yards just wide of Cammy Bell's goal.
Three minutes later the visitors made the breakthrough.
Lee Johnson was caught in possession and Jamie Murphy took full advantage, eluding two defenders and slotting a right-foot shot from 16 yards into the bottom left-hand corner of the net.
Another Killie mistake, this time by skipper Manuel Pascali, almost allowed Motherwell to increase their lead as his miscued header landed at the feet of Michael Higdon, however the 'Well striker pulled his left-foot effort wide.
After Rory Boulding also shot wide, Kilmarnock found the equaliser on the half-hour mark.
Harkins, who was at the heart of most of their attacks, finished off a neat move, shooting past Randolph.
In the 36th minute Motherwell went back in front as the game flowed from end to end. A quick break from the visitors caught the Killie defence flat footed on the half-way line.
Higdon slipped a neat pass through to release Murphy a couple of yards inside the Killie half, and the former Scotland Under-21 striker ran straight towards Bell's goal, rounded the keeper and knocked it into the empty net to claim his and Motherwell's second.
Killie made a double substitution nine minutes after the interval.
Lee Johnson was replaced by Danny Raachi in the midfield while new Spanish signing Borja Perez came on for Matthew Kennedy.
Murphy, having scored twice in the first half, came close to adding a third in the 55th minute. Slack defending by Killie allowed Henrik Ojamaa the chance to set up Murphy but his right-foot effort flew over.
A few minutes later the roles were reversed. This time Murphy found Ojamaa inside the box and the Estonian international sent a curling effort inches wide of Bell's left hand post.
Raachi almost pulled Killie level in the 62nd minute but he found Randolph in top form . The big 'keeper diving to his right to parry Raachi's 25-yard strike.
Killie pushed for the equaliser but they were being hit on the break by Motherwell.
The speedy Ojamaa was at the heart of most of those counters and came close on a few occasions.
Higdon met a Murphy cross full on the volley from 15 yards but his effort flew over the bar.
With two minutes left to play substitute Fraser Kerr almost added a third for the visitors.
Kerr showed neat skills to get past two defenders before firing in a shot from 12 yards which Bell somehow managed to superbly turn over the top.
Full Time The referee blows for the end of the match.
Free kick awarded for a foul by Danny Racchi on Henrik Ojamaa. Tom Hateley restarts play with the free kick.
90:00 +1:46 Booking
Booking Caution for Michael Nelson.
Free kick awarded for a foul by Michael Higdon on Michael Nelson. Free kick taken by Cameron Bell.
Fraser Kerr takes a shot. Save by Cameron Bell. Tom Hateley takes a outswinging corner from the right by-line to the near post, clearance by Manuel Pascali.
Jamie Murphy is flagged offside by the assistant referee. Cameron Bell restarts play with the free kick.
Free kick taken by Manuel Pascali.
Booking Shaun Hutchinson goes into the book for unsporting behaviour.
Foul by Shaun Hutchinson on Gary Harkins, free kick awarded.
Effort on goal by Michael Higdon from inside the box misses to the right of the target.
Shot on goal by Henrik Ojamaa from inside the box goes harmlessly over the target. Corner taken by Tom Hateley from the right by-line played to the near post, save made by Cameron Bell.
Keith Lasley challenges James Dayton unfairly and gives away a free kick. Free kick crossed right-footed by Liam Kelly.
The offside flag is raised against Rory Boulding. Darren Randolph restarts play with the free kick.
Shot from deep inside the area by Henrik Ojamaa clears the bar.
Substitution James Dayton replaces Ryan O'Leary.
Unfair challenge on Adam Cummins by Rory Boulding results in a free kick. Free kick taken by Darren Randolph.
Corner taken right-footed by Danny Racchi from the right by-line to the near post, Gary Harkins takes a shot. Comfortable save by Darren Randolph.
Manuel Pascali restarts play with the free kick.
Substitution Fraser Kerr comes on in place of Chris Humphrey.
Michael Nelson fouled by Michael Higdon, the ref awards a free kick.
Substitution Steven Hetherington replaces Nicky Law.
The ball is swung over by Liam Kelly.
Danny Racchi takes a shot. Brilliant save by Darren Randolph.
Borja Perez takes a shot. Save made by Darren Randolph.
Unfair challenge on Liam Kelly by Nicky Law results in a free kick. Liam Kelly restarts play with the free kick.
Corner taken right-footed by Liam Kelly, clearance by Jamie Murphy.
Outswinging corner taken from the right by-line by Tom Hateley.
Shot on goal by Jamie Murphy from inside the box goes harmlessly over the target.
Cameron Bell takes the free kick.
Substitution Matthew Kennedy goes off and Borja Perez comes on.
Substitution Danny Racchi on for Lee Johnson.
Free kick awarded for an unfair challenge on Ryan O'Leary by Henrik Ojamaa.
The referee blows for offside against Jeroen Tesselaar. Darren Randolph takes the indirect free kick.
The second half has started.
45:00 +1:04 Half time
Half Time The first half comes to an end.
Nicky Law has a header from close in and clears the crossbar.
Rory Boulding concedes a free kick for a foul on Zaine Francis-Angol. Darren Randolph restarts play with the free kick.
Michael Nelson takes the indirect free kick.
Substitution Adam Cummins is brought on as a substitute for Simon Ramsden.
Michael Higdon gives away a free kick for an unfair challenge on Michael Nelson.
Gary Harkins takes a shot. Save by Darren Randolph.
Unfair challenge on Henrik Ojamaa by Liam Kelly results in a free kick. Direct free kick taken by Nicky Law.
Assist on the goal came from Michael Higdon.
36:04 Goal scored
Goal! - Jamie Murphy - Kilmarnock 1 - 2 Motherwell Jamie Murphy grabs a goal from close in to the bottom left corner of the goal. Kilmarnock 1-2 Motherwell.
Foul by Shaun Hutchinson on Gary Harkins, free kick awarded. Free kick taken by Liam Kelly.
Free kick awarded for a foul by Simon Ramsden on Rory Boulding. Shot comes in from Liam Kelly from the free kick.
Keith Lasley fouled by Liam Kelly, the ref awards a free kick. Tom Hateley crosses the ball in from the free kick.
29:58 Goal scored
Goal! - Gary Harkins - Kilmarnock 1 - 1 Motherwell Gary Harkins finds the back of the net with a goal from inside the penalty box to the bottom right corner of the goal. Kilmarnock 1-1 Motherwell.
Henrik Ojamaa concedes a free kick for a foul on Ryan O'Leary. Cameron Bell takes the free kick.
Effort from the edge of the area by Rory Boulding goes wide of the right-hand post.
Michael Higdon concedes a free kick for a foul on Manuel Pascali. Indirect free kick taken by Manuel Pascali.
Simon Ramsden restarts play with the free kick.
Booking The referee shows Liam Kelly a yellow card.
Foul by Liam Kelly on Keith Lasley, free kick awarded.
Free kick awarded for an unfair challenge on Jeroen Tesselaar by Chris Humphrey. Free kick taken by Manuel Pascali.
Manuel Pascali restarts play with the free kick.
Booking The referee books Michael Higdon for unsporting behaviour.
Michael Higdon challenges Gary Harkins unfairly and gives away a free kick.
The official flags Rory Boulding offside. Simon Ramsden restarts play with the free kick.
Foul by Zaine Francis-Angol on Rory Boulding, free kick awarded. The free kick is delivered right-footed by Liam Kelly from right wing, Darren Randolph makes a comfortable save.
Chris Humphrey has an effort at goal from just outside the box which goes wide of the right-hand post.
The assistant referee flags for offside against Michael Higdon. Free kick taken by Cameron Bell.
Close range shot by Michael Higdon goes wide of the right-hand upright.
11:16 Goal scored
Goal! - Jamie Murphy - Kilmarnock 0 - 1 Motherwell Jamie Murphy scores a goal from inside the penalty area to the bottom right corner of the goal. Kilmarnock 0-1 Motherwell.
Michael Higdon has an effort at goal from outside the penalty box which goes wide right of the target.
Rory Boulding takes a shot. Zaine Francis-Angol gets a block in. Corner taken by Lee Johnson.
Zaine Francis-Angol fouled by Manuel Pascali, the ref awards a free kick. Tom Hateley crosses the ball in from the free kick, Manuel Pascali manages to make a clearance.
Corner taken by Tom Hateley from the right by-line played to the near post. Tom Hateley takes the outswinging corner, Headed effort on goal by Shaun Hutchinson from just inside the box goes harmlessly over the target.
The official flags Rory Boulding offside. Darren Randolph takes the indirect free kick.
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.