Ayr United moved off the bottom of the First Division after recovering from a goal down to defeat Livingston.
The visitors took the lead in the 11th minute when midfielder Dean Cummings let fly from 12 yards and the ball nestled into the bottom corner.
The Honest Men equalised in the 33rd minute when a powerful drive from midfielder Andrew Geggan beat goalkeeper Andrew McNeil.
Edward Malone gave the home side the lead after 53 minutes, the defender with a neat finish from six yards following Christopher Smith's knock-down.
And the points were secured for the home side three minutes later when Geggan grabbed his second of the game, meeting Adam Dodd's cross to head the ball beyond McNeil and high into the net.
Ayr United: Cuthbert, Tiffoney, Dodd, Malone, Smith, Geggan, Moffat, Tomsett, Parker (Wardlaw 85), Roberts, McGowan. Subs Not Used: McWilliams, McKernon, Ross Robertson, Armstrong.
Goals: Geggan 33,Malone 53,Geggan 56.
Livingston: McNeil, Ross Docherty, Talbot, Watson, Craig Barr, Kyle Jacobs, Robert Barr, Fox (Russell 62), McNulty (Boulding 79), Cummings, Keaghan Jacobs. Subs Not Used: Jamieson, Fordyce, Beaumont.
Booked: Fox,Ross Docherty.
Goal: Cummings 11.
Ref: Craig Thomson