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.
Wales Head Coach Rob Howley talks to WRU TV's Sebastian Barrett about the 36-man squad he has just named for the forthcoming Under Armour series, which includes two uncapped players, Ospreys duo Sam Davies and Rory Thornton.
Head coach Rowland Phillips is deligthed he can now call BT Sport Cardiff Arms Park home for his Wales Women's side, who launch their international season next month with games against Scotland and UK Armed Forces in the heart of the capital city.
Wales Sevens star Sam Cross has put his home town club of Brynmawr on the map after winning a silver medal at the Rio Olympics with Team GB. His club have now honoured him by naming their players bar after him, as WRU TV discovered at the official launch, recently.
One of the newest members of the Principality Premiership, Bargoed admit it's proving to be a steep learning curve at the highest level, but are determined to become a force to be reckoned with. WRU TV visited the club last weekend when they took on Llanelli.
Table-topping Aberavon travel to north Wales to tackle RGC 1404 as both teams defend unbeaten starts to the season in the Principality Premiership. WRU TV's Graeme Gillespie visited the Wizards to see how their preparations were going for the game of the weekend.
The Half a Game initiative is currently sweeping across Wales and proving a major success. The scheme aims to give every young player at least half a game every weekend. WRU TV recently visited a festival in Narberth where clubs have fully embraced the initiative.
Both Bargoed and Swansea were seeking their first win of the Principality Premiership season this afternoon. It proved a fruitful day for the hosts - not only did they win, but Bargoed claimed a try bonus point.
Cardiff managed to keep their unbeaten record at home intact, but only just as Bridgend made them work extremely hard before the Blue and Blacks secured a hard fought Principality Premiership win at the BT Sport Arms Park last night.
Former Wales back row Andy Powell gives a guided tour of The Wern, home of Merthyr RFC, who are determined to prove a lot of people wrong and make their mark in their first season in the Principality Premiership.