Neath will play in Europe for the first time in their history after beating Prestatyn in a Welsh Premier League play-off for a Europa League place.
Playing at home, Neath went ahead after just 12 seconds when Liam Bond scored with a low shot from 18 yards.
Lee Hunt equalised on 24 minutes with a sweet volley, but Andy Hill's header put Neath ahead again after the break.
Hill added a second six minutes from time before Jon Fisher-Cooke pulled one back in second minute of added time.
Neath, whose side included former Swansea City players Lee Trundle and Kris O'Leary, had finished the regular season in third place, 18 points ahead of fifth-placed Prestatyn Town.
The Eagles will now play in the first qualifying round of the Europa League, which takes place in early July.
The play-off final was introduced by the Welsh Premier League this season as part of the restructuring which saw the competition reduced to 12 teams, with a mid-table split halfway through the season.
Neath complete the European qualifiers, joining The New Saints (runners-up) and Llanelli (Welsh Cup winners) in the Europa League, while champions Bangor City will play in the Champions League.