Mackie U18s travelled to Elgin on Saturday to take on league leaders Moray in a top of the table clash, being just two points behind.
The game got under way with both sides determined to stamp their authority early on.
Mackie defended well and set up a ruck to give them a platform to clear their lines, however some over-exuberant play from a Moray man saw the home side receive their first of two yellow cards of the day.
Mackie were quick to exploit their extra man advantage and scored two unconverted tries via the quick hands and direct running of Hartley and Kirkwood.
Moray were not to be outdone, however, and scored twice themselves just before half time, with one of them being converted.
Mackie were in determined mood and were finally rewarded for their persistence with a converted try under the sticks.
Moray’s ill-discipline cost them their second yellow of the day and Mackie pressed home their advantage.
Moray showed their class and retaliated almost immediately with a break out try of their own, which was converted, to bring the scores to Moray 19 - 22 Mackie.
The Stonehaven side looked to have sealed certain victory when they crossed the Moray try line again for a converted try with only a few minutes to go, led by man of the match Kelly, but Moray kept scoring themselves, bringing the game into a final nail-biting final minute with the score Moray 24 -29 Mackie.
Mackie, with the last touch of the ball, moved 10 points clear of their opposition and remain unbeaten in their league, having won five out of five games.