Two first-half goals from midfield ace Peter Gellaitry helped guide Waverley into the semi-finals of the South of Scotland Cup.
Despite facing a strong, swirling wind, the Teries set the early pace and in the opening exchanges came close to breaking the deadlock.
Finding space down the left, Scott Craig whipped over a cross which found Neal McConnell, who rattled in a shot that Mayfield keeper Barry Lindley did well to block.
In the ninth minute, however, Waverley did find the net.
Craig once again did the spadework with a run down the flank and, with the Mayfield defence at sixes and sevens, cut the ball to Gellaitry, who finished well.
With a minute of the first period left, Waverley went further ahead. Latching onto the ball in midfield, Gellaitry unleashed a rasping drive that sailed high into the net.
Mayfield began the second half in sprightly fashion and in a matter of minutes Darren Mitchell, Mark Moncur and Martin Hughes all squandered chances.
In the 56th minute, however, the visitors fell into further arrears when Darren Munro got himself on the Waverley scoresheet, driving home a Taylor Hope pass.
Although three goals behind, Mayfield continued to battle and seven minutes from time got a reward for their efforts. Hughes emerged the Mayfield marksman in slotting away a Moncur cross.
In the closing stages Mayfield were reduced to 10 men due to the red-carding of Liam Hall.