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 ...

9. Thomas Flogel
The Austrian, now 49, is the current manager of Austrian fifth tier side FC Bisamberg. Photo: SNS Group

10. Jim Hamilton
Pictured scoring Hearts' fourth against Ayr, the striker has been out of football other than appearing for Hearts at hospitality events. Photo: SNS Group

11. Colin Cameron
Scorer of the opening goal in the '98 final, Cameron was released from his role as assistant boss at Airdrieonians last summer. Currently appearing on the Edinburgh Football Podcast with David Tanner and Derek Riordan. Photo: SNS Group 0141 221 3602

12. Grant Murray
The defender appeared as a sub against Ayr, but remained on the bench during the cup final win over Rangers. Went on to manage Raith Rovers and was most recently on the coaching staff at Hibs until his departure last year. Photo: SNS Group 0141 221 3602

