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 WRU's Women and Girls legacy events - #TRY OUR GAME have proved popular this week with current players and newcomers to the game learning new skills and picking up tips from national squad players.
We caught up with Shona and Ellie from the Wales women team ahead of the start of the Women's Rugby World Cup in Paris next month at a recent women's training session to encourage and promote more women and girls to try their hand at rugby. #tryourgame
The Women's Rugby World Cup warm-up clash between Wales and USA proved bittersweet for centre Elen Evans. Despite being one of the star performers on the day on her 50th Test appearance, USA edged home 10-7 at Cross Keys.
Wales completed their Junior World Championship campaign with a victory over Samoa. Team manager Mark Taylor and No 8 James Benjamin reflect on a tournament which saw Wales win three games and lose two.
Wales U20 players Angus O'Brien, Nicky Thomas and coach Richard Hodges are determined to finish their Junior World Championship with a flourish when they tackle the big hitting Samoans tomorrow in Auckland.