Dundee United staged a second half comeback to earn their first away win of the year in an entertaining match.
Jim McIntyre headed a late winner for United
Jason Scotland opened the scoring for the visitors but David McNamee levelled before half-time.
Scott McLaughlin cracked home a beauty to put Livingston in front after 72 minutes but United were to hit back.
Collin Samuel thundered in a powerful equaliser after an impressive run and the winner came from the head of Jim McIntyre with seven minutes to spare.
Livingston went at their visitors from the outset with the lively running of David Fernandez troubling the United defence.
But the visitors went close in the fifth minute with a powerful Scotland drive after he dispossessed Stuart Lovell 25-yards from goal.
Lee Makel was next to have a go for the West Lothian side, but keeper Paul Gallacher was equal to his curling 30-yard free-kick.
The visitors opened the scoring in fine style after some wonderful interplay between Charlie Miller and Scotland.
Miller had his back to goal and expertly backheeled it through a throng of players into the path of his onrushing team-mate - who coolly slotted home from 15 yards.
Livingston forced a series of corners on the half-hour mark but the equaliser came on a lightening counter-attack.
United thought they had added a second when Miller raced through on goal and chipped beyond Roddy McKenzie but Marvin Andrews raced back to clear off the line.
As United stood stunned, and having committed men forward, Livi raced up the field and set up McNamee, who slammed the ball home via the post from 18 yards.
Jason Scotland opened the scoring at the City Stadium
United made a bright start to the second half and went close three minutes in when McIntyre went for McKenzie's near post but flashed his shot wide.
Makel was next to try his luck but he shot wide from 22 yards after being set up nicely by Fernandez.
Fernandez was in the mood and he demonstrated his excellent close control and agility again two minutes later, twisting and turning before testing Gallacher from 18 yards.
Livi missed a glorious chance to take the lead when Fernandez raced past the United defence and set up Lilley but the former United striker could not get a good enough contact on the ball to turn it into the net.
The home team went ahead when substitute McLaughlin thundered home a great half-volley after McKenzie had punched a corner to the edge of the penalty box.
But United levelled five minutes later when Samuel, on for Scotland, powered home a shot that squeezed under the diving McKenzie with his first touch of the game.
The victory was sealed in the 83rd minute when McIntyre was first to meet a cross from Andy McLaren and he flicked a back-header looping into the net.
Livingston: McKenzie, Rubio, Andrews, Dorado (McGovern 45), McNamee, Makel, O'Brien, Lovell (McLaughlin 66), McAllister, Lilley (McMenamin 87), Fernandez. Subs Not Used: Main, Brittain.
Dundee United: Gallacher, Wilson, Innes, McCracken, Archibald, Kerr, Miller, McInnes, McLaren, Scotland (Samuel 78), McIntyre. Subs Not Used: Jarvie, Dodds, Duff, Easton.
Referee: C Richmond