A dramatic late winner from Owen Winnik ensured Tynecastle won the South East Region Cup at Dalkeith's expense.
A rather uneventful first half was completely overshadowed by a thrilling final 20 minutes. First Tynecastle skipper Ciaran McKenzie cleared the ball off the line spectacularly immediately before a 30-yard screamer from Matthew Brown gave Tynecastle the lead.
Winnik had a chance to make sure of victory, but he did not show the same composure as he did later in the match and fired straight at Dalkeith keeper Jordan Cherrie.
Dalkeith almost made him pay when they benefited from a bizarre own goal from Lewis Gill who punched the ball into his own goal via a dodgy bounce on the ground.
The Tynecastle number 10 had the last laugh though by snatching victory at the death when he bundled the ball home from a corner.
This was actually the second time these two Midlothian sides have met in a cup final, with Dalkeith looking to avenge their 2-0 defeat in a different trophy earlier in the season. That being said, in the opening exchanges neither goalkeeper was really troubled.
Midway through the first half Dalkeith's Ryan Borthwick attempted to catch Tynecastle keeper Lewis Gill off his line in what was the game's first real effort in goal. However his lob stopped well shy of reaching the back of the net.
The game failed to open up much at all in the first half, with both teams being more than effective in cancelling one another out. Many people expected as much - despite Tynecastle having racked up more comprehensive victories en route to this final and their earlier victory over their Midlothian rivals.
On the half-hour mark Tynecastle's Jackson Cowan registered his side's first effort on goal, curling a 25-yard effort wide of the post. Shortly afterward, Kieran Jack of Dalkeith had a pop from a similar range - but his drilled set-piece effort was blocked.
Borthwick had another go from distance shortly before the break - this time testing Gill but the keeper held easily enough.