In a surprise result, the UUP gained South Antrim from the DUP, where Danny Kinahan defeated veteran MP William McCrea by 949 votes.
They also gained Fermanagh and South Tyrone from Sinn Féin, as former leader Tom Elliott took the seat from Michelle Gildernew by 530 votes.
The seat had been the site of a unionist pact in 2010, when the DUP and UUP both supported an independent candidate, who went on to be defeated by Gildernew by just four votes.
The two seats for the UUP marked their best election since 2001, and they also managed to increase their vote share slightly to overtake the SDLP into third place in Northern Ireland.
The Northern Ireland Conservatives were contesting a general election as a separate party for the first time since 2005 (they had previously entered into an electoral alliance with the UUP).
The party stood in 16 constituencies (not in Belfast North and Fermanagh and South Tyrone), polling just over 9,000 votes in total.
In Newry and Armagh, new candidate Mickey Brady saw off the UUP's Danny Kennedy despite the unionist unity pact in the constituency.
In South Down, Margaret Ritchie was re-elected with a majority reduced from over 8,000 to just under 6,000, although her colleague Mark Durkan in Foyle saw a small swing to the SDLP.
Party leader Alasdair McDonnell narrowly retained Belfast South with just 9,560 votes (a share of only 24.5% – the lowest of any winning candidate in the UK in 2015).
They retained their deposit in 10 of the 18 constituencies, and even managed to secure an increase in their vote of 5.6% in Belfast East, which they lost to the DUP.