The poll was held as former Labour MP Huw Irranca-Davies stood down to run for - and win - the Welsh Assembly election in the same area, part of Bridgend county borough.
In the 2015 General Election, Labour won the seat with 52% of the vote and the Conservatives came second with 15%.
UKIP came second this time around.
Labour's Christopher Elmore has become the new MP for Ogmore after winning the Parliamentary by-election with 52% of the vote.