All 18 of Northern Ireland’s MPs have been confirmed with the SDLP and UUP losing their seats at Westminster.
The final result came in Fermanagh and South Tyrone where UUP’s Tom Elliott lost to Sinn Fin’s Michelle Gildernew.
Former SDLP party leaders Mark Durkan, Margaret Ritchie and Alasdair McDonnell were toppled in Foyle, South Down and Belfast South.
In Foyle, Sinn Fin’s Elisha McCallion won by 169 votes after a recount.
- Live coverage of NI election results
- Full coverage of general election 2017
- Find the result where you live
- Full Northern Ireland results breakdown
- Full UK results breakdown
The seat had been held by the SDLP since the constituency formed in 1983.
The confirmed results saw the DUP win 10 seats, Sinn Fin win seven and independent candidate Lady Sylvia Hermon retain her seat in North Down.
In South Down, Ms Ritchie lost to Sinn Fin’s Chris Hazzard while the DUP’s Emma Little-Pengelly won the seat in Belfast South from Dr McDonnell.
The UUP’s Danny Kinahan lost his seat in South Antrim to the DUP’s Paul Girvan.
Analysis: Enda McClafferty, BBC News NI political correspondent
It doesn’t get any better than this for Sinn Fin.
The spiritual home of the SDLP now belongs to them.
But, the writing has been on the wall for the SDLP in Foyle. For the first time they were outpolled by Sinn Fin in the last assembly election.
The passing of Martin McGuinness was a factor in galvanising the republican vote but the problems in the SDLP run deep and Colum Eastwood is facing a huge rebuilding task.
He may look south of the border for help in the shape of Fianna Fil.
Lady Sylvia Hermon retained her seat in North Down but had her majority of over 9,000 votes cut to around 1,200 by DUP candidate Alex Easton.
The DUP’s Jim Shannon, Jeffrey Donaldson, Gregory Campbell, Gavin Robinson, Ian Paisley, Nigel Dodds and David Simpson retained their seats in Strangford, Lagan Valley, East Londonderry, Belfast East, Belfast North and Upper Bann.
Sinn Fin’s Paul Maskey, Mickey Brady and Francie Molloy also retained their seats in Belfast West, Newry and Armagh and Mid-Ulster while Barry McElduff won in West Tyrone.
A total of 109 candidates stood across Northern Ireland and 1.2m people were eligible to vote.
The general election exit poll indicated that the Conservatives will be the largest party at Westminster but may not secure an overall majority.
If this proves correct, Northern Ireland’s 18 MPs may become crucial in the formation of a government.
BBC News NI is providing full coverage of the results online, on television and radio.
More From this publisher : HERE