Despite leading 19-0 until the final minute of the opening half, the Wizards struggled to overcome a spririted Llanharan outfit, who were fit and played withgreat heart.
Early tries by wing Richard Carter and centre David Hawkins were followed by a second from Hawkins with two converted by Jamie Davies.
Llanharan got on the board with an injury-time penalty by Wayne Jervis, but within five minutes of the restart, Carter went over again for Davies to convert.
Llanharan replied with a try by hooker Alan Williams and Jervis kicked a penalty, though Davies added a further Aberavon score with a penalty shot.
Aberavon were rocked again when flanker Ceri Jones went over for a last-minute try that Jervis converted from the touchline.
In Division One, leaders Maesteg won a local derby by 37-15 against Bridgend Athletic and scored five tries through wing Alun Brown (2), centre Paul Morgan, veteran scrum half Kevin Ellis and fly half Mark David.
David converted three and placed two penalty goals, but the Athletic responded with tries by Gavin Pound and Andy Tollentino and skipper Stuart Morris placed a conversion and penalty.
The last five years have been an emotional rollercoaster on and off the pitch for RGC1404. Promotion to the Principality Premiership was the culmination of five years of hard work and investment in North Wales. WRU TV caught up with prop Joe Simpson, who was one of the first intake of WRU North Wales Academy players in 2010.
Ebbw Vale captain Damien Hudd picked up the biggest accolade of the night at the 11th Principality Premiership Awards Evening held at Principality Stadium, after leading his side to the title for the first time.
Wales assistant coach Robin McBryde is predicting a tough battle against England on Sunday despite the fact they may not be considered to be at full strength. Players will be out to impress Eddie Jones which makes England a dangerous proposition, he says.
Wales U20 captain Tom Phillips and performance psychologist Dr Rich Neil explain why spending three days at Monmouth RFC has further strengthened the togetherness of the squad ahead of the #WorldRugbyU20s