Having comfortably disposed of Clydebank and Albion Rovers in the previous rounds, it was the turn of Gordon Dalziel’s Honest Men to stand between Jim Jefferies’ side and a place in the semi-finals.
The match took place 23 years ago this month, and Hearts went into the encounter full of confidence on the back of a nine-game unbeaten run which included a 2-2 draw at Ibrox the previous week.
And they made a strong start against the First Division side as goals from Paul Ritchie and Thomas Flogel had the hosts two goals up inside 17 minutes, only for Ian Ferguson to pull one back for the visitors two minutes later.
Ayr’s hopes of mounting an unlikely comeback were hampered by a red card for Derek Anderson just before the half hour for aiming a kick at Jim Hamilton, and second half strikes from Stevie Fulton and Hamilton ensured a comfortable 4-1 win over the 10 men.
Hearts famously went on to win the Scottish Cup that year, defeating Rangers 2-1 in the final at Parkhead, after accounting for Falkirk 3-1 in the semi-final at Ibrox.
But what about the 14 players who played their part in the win over Ayr? All but four of them would go on to feature in the final ...

5. Stefano Salvatori
The Italian sadly passed away in October 2017 after a battle with cancer. He was 49. Photo: SNS Group

6. Paul Ritchie
The defender, pictured after scoring the opener against Ayr, played for both Hearts and Rangers. He is now the owner of Box Soccer San Diego. Photo: SNS Group

7. Neil McCann
Picture shows the winger being challenged by John Robertson in the 4-1 win over Ayr. Was working as a pundit for BBC and Sky until his recent appointment as interim manager at Inverness CT after John Robertson was placed on compassionate leave. Photo: SNS Group

8. Steve Fulton
The midfielder who made 204 appearances for Hearts is pictured celebrating after scoring the third goal in the 1998 quarter-final win over Ayr. Has been out of football working as a labourer over the past six years. Photo: SNS Group

