Penallta survived a Nant Conwy fightback to emerge victorious 21-15 in a Swalec Plate final which burst into life in the second half at the Millennium Stadium
But the Division Two East side did it the tough way, as they survived two yellow cards and a late onslaught by their North Walian opponents.
The Pitmen had raced into a 21-3 lead early in the second half, but Nant Conwy refused to give up hope, and came within inches of snatching a dramatic win.
Penallta took the lead inside 10 minutes when outside half Jon Wright poked a precise crossfield kick for winger Steven Davies to pluck out of the air and sidestep his way over the line. Wright added the extras, but there was little else to excite a boisterous crowd for most of the rest of the half, with the score remaining 7-0 in Penallta's favour until two minutes before the interval, when Nant Conwy full back Carwyn ap Myrddin slotted a penalty.
But Penallta ended the half as they had started it. Awarded an injury-time penalty, they elected to go for touch rather than restore their seven point lead by kicking the points, a gamble which paid off when flanker Ross Morgan touched down following a powerful forward drive.
Morgan grabbed his second of the afternoon 13 minutes into the second period after a Nant Conwy clearance kick was blocked. Morgan was in the best position to gather, reacting sharply to gather the ball on the bounce without breaking stride, and swallow diving over the whitewash.
At that stage the Pitmen could be forgiven for starting to plan the post-match celebrations, but the Division One North side had other ideas.
Replacement Llywyrch ap Myrddin took advantage of a lagging Penallta defence to sprint across the line for a well-worked try, and with nearly 20 minutes remaining, Nant had narrowed the gap to 21-8.
Moments later, the Pant Carw-based side squandered a glorious opportunity for another score when ap Myrddin made another blistering break down the left flank, but his popped inside pass fell loose with the Pitmen's defence nowhere.
The eventual winners also had to survive a period when they were reduced to just 13 players, with flanker Rhys Silcox and replacement prop Luke Purnell sent to the bin by referee Greg Morgan within minutes of each other.
Nant Conwy took advantage of their temporary numerical advantage by crossing for their second try through Purnell's opposite number Gareth Jones, who sniped over from close range.
And his side continued their pressure, the clock ticking past 80 minutes with Nant Conwy camped under the Penallta posts and winning a series of scrums. Referee Morgan looked to be on the verge of awarding what would surely have been a winning penalty try, but with the Pitmen restored to their full complement of forwards the ball was turned over and the plate was secured.
Penallta coach Matt Tucker paid tribute to his victorious side, calling the success a "huge achievement"."We have been working really hard all year," said Tucker.
"The league went awry by a few points but today is massive, it's the biggest trophy the club will ever win."
He singled out man of the match Jon Wright for particular praise, who has been playing outside half for less than a year.
"Jonny Wright was outstanding," added Tucker.
"He was converted to outside half this year. It's a phenomenal achievement for him to pick up man of the match in this arena.
Nant might have had a penalty try from their series of scrums late on, but captain Elgan Davies refused to use that as an excuse.
"We are not going to complain about the ref. They just had too much ball in the first half," added Davies.
Wales reached their first semi-final since 2013 in the opening round of this season's HSBC World Rugby Sevens Series in Dubai. WRU TV's Graeme Gillespie recaps on what proved to be an eventful tournament
Wales and Ospreys back row James King, who came through the North Wales age grade system, nominated North Wales Regional Community Rugby Manager Marc Roberts, in the WRU's 'Diolch' initiative where squad players thanked those who played a part in their rise to the top.
Beating Merthyr has boosted Carmarthen Quins hopes of reaching a top eight spot in the Principality Premiership. Quins captain Haydn Pugh is delighted with his team's progress and is determined that everyone from the Under 6s through to the senior team, enjoys the ride.
When the Wales squad were asked to nominate individuals who played a big part in their early playing days, Wales and Dragons full back and wing Hallam Amos thought of his former Monmouth School rugby coach John Bevan.
Sam Cross and Luke Treharne have been named as co-captains of the Wales Sevens side as head coach Gareth Williams names his 12-man squad to play in the first leg of the HSBC World Series in Dubai next weekend.
Bedwas head coach Steve Law and players Nicky Griffiths and Alun Rees extol the virtues of the close knit club as they prepare to host third place RGC 1404 - who are one place head of them on the Principality Premiership points table - on Saturday.
Many of the Wales squad have said Diolch (thank you) to someone who played an important part in their early playing days by nominating them to be invited to the Wales v South Africa match. One person, Gowerton Comprehensive geography teacher Mr Dean Mason was nominated by two of his former pupils, Dan Biggar and Sam Davies.
The second WRU disability rugby pilot has been delivered, this time in Caerphilly schools, culminating in a festival at the Caerphilly Centre of Sporting Excellence, Ystrad Mynach tomorrow. Plans are in place to set up a Disability Rugby Club in Newbridge to provide long-term playing opportunities.
WRU TV: Hear from inside the Wales camp as Neil Jenkins discusses this weekend's clash with South Africa and how the squad are looking to put in a strong performance to round of the 2016 Under Armour Series