Two penalties from Michael Moffat earned Ayr a victory against Albion Rovers at Somerset Park.
The Honest Men took the lead after just two minutes when Moffat scored his first spot-kick of the day after Robbie Crawford had been brought down by goalkeeper Matthew McGinley.
The visitors almost drew level six minutes before the interval when Gary Phillips' cross found Alan Reid inside the area, but Alistair Brown was on hand to keep out the defender with a fine save.
The Wee Rovers were able to level the scores in first-half stoppage time as Steven Howarth rose unmarked to head home Phillips' centre.
Jason Crooks thought he had snatched a late winner for Todd Lumsden's side only for Brown to pull off a crucial save.
Brown's efforts proved even more crucial when, in the 93rd minute, Moffat scored his second penalty after Barry Russell had been sent off for bringing down United's number nine.
Alistair Brown, Hunter, John Robertson, McAusland, Twaddle, Crawford, Sinclair, McStay (Winters 76), Shankland (Ross Robertson 65), Moffat, Mackinnon (Roberts 76). Subs Not Used: McLatchie, Wyllie.
John Robertson, Crawford, McStay.
Moffat 2 pen,90 pen.
McGinley, Reid, O'Byrne, Ciaran Donnelly, Russell,Crawford, Anthony Stevenson, Marriott, Phillips (Brannon 83), Howarth (Crooks 87), McGuigan. Subs Not Used: McWilliams, Tiffeny, Dick.
O'Byrne, Anthony Stevenson.