Ayr sealed a place in the Scottish Championship play-off final after a 6-2 aggregate victory over Peterhead.
Leading 4-1 from the first leg, Ayr extended their advantage in the 26th minute courtesy of a fine finish from Robbie Crawford.
Peterhead, on the back of a seven-game losing streak, levelled five minutes later through an own goal from Michael Donald.
The home side restored their lead in the 57th minute, skipper Nicky Devlin heading in a Ross Docherty corner.
Championship News
Scottish referee Craig Napier comes out as gay
Scottish referee Craig Napier came out as gay, becoming the first openly gay figure in the Scottish game since Justin Fashanu in the mid-1990s.
Raith Rovers back down over signing of player ruled to be a rapist, apologise for 'anguish and anger' caused
Raith Rovers have backed down over the signing of David Goodwillie after previously saying they would stand by him.
Scottish club Raith Rovers criticised for signing striker ruled to be a rapist in 2017 case
Scottish football club Raith Rovers have faced criticism over their decision to sign David Goodwillie who was convicted of raping a woman.
Leon Balogun, Michael Oliseh, Mohammed Kudus headline Africans to watch in ESPN broadcast games
We name 15 African players who are shaping up to enjoy a big campaign in league competitions broadcast by ESPN in Africa.
Celtic 'disappointed' over Christie's ban for genital grab in derby
Celtic have said they are "extremely disappointed" about Ryan Christie's three-match ban for grabbing Rangers' Alfredo Morelos by the genitals.