Ayr United remain top of the Championship with a 100% record after scoring a goal in each half against 10-man Raith Rovers.
Shaun Byrne was sent off on 38 minutes for conceding a penalty, converted by Anton Dowds for his sixth goal of the season in all competitions.
Scott Brown's in-form side made the points safe in the 90th minute when Ethan Walker finished off a flowing counter-attack.
Managerless Rovers, runners-up last season, are in seventh place with one win from their three outings.