At the same time, Jeremy Corbyn, the Labour chief who was once seen as too far left to be a credible leader, found his footing on the campaign trail and staged a resurgence.

The Liberal Democrats had hoped to turn the election into essentially a do-over of the Brexit referendum, but that tactic seemed to fall flat, and the party failed to gather much steam.

The same could be said for the far-right U.K. Independence Party, which has imploded since achieving its primary goal of Britain’s leaving the European Union.

Along the way, campaigning was suspended twice to honor the victims of two terrorist attacks, one in Manchester and one in London.