Livingston 1-2 Ayr United
Ayr United moved out of the Scottish First Division's relegation zone after coming from behind to beat Livingston.
Livi took the lead on 12 minutes when Keaghan Jacobs netted from close range following good work by Marc McNulty.
The visitors levelled eight minutes later, Mark Roberts converting a penalty after Andrew McNeil's foul on Keigan Parker.
Liam Fox was denied by the crossbar as the hosts tried to regain the lead but it was Ayr who claimed all three points when Michael McGowan fired home from Parker's cross in the 66th minute.
Livingston: McNeil, Ross Docherty, Watson, Craig Barr, Talbot, Kyle Jacobs, Fox, Scougall (Russell 67), Robert Barr, McNulty, Keaghan Jacobs. Subs Not Used: Jamieson, Fordyce, Boulding, Russle.
Booked: Craig Barr, Talbot.
Goals: Keaghan Jacobs 12.
Ayr: Cuthbert, Tiffoney, Malone, Smith, Dodd, Moffat, Geggan, Tomsett, McGowan, Parker, Roberts. Subs Not Used: McWilliams, Wardlaw, McKernon, Ross Robertson, Armstrong.
Booked: McGowan, Geggan, Dodd, Tomsett.
Goals: Roberts 20 pen, McGowan 66.
Ref: Stephen Finnie