A goal 13 minutes from time from substitute Stephen Maguire earned a win that takes Peterhead to joint top of the Third Division.
It wasn’t an impress performance, in fact some would say that a draw would have been a fairer result, but after three consecutive defeats on the road, a victory in any form was gratefully received.
A dire first half that the visitors edged on chances created, saw an improvement from the Blue Toon after the break and a moment of opportunism saw the points stay at Balmoor.
A dreadful first half at Devronvale was to cost Peterhead dear and another inept display in the opening period could have done the same if Berwick had taken their chances.
The visitors centre half Chris Townsley sent a powerful header towards goal from a Lee Currie cross after 14 minutes and Paul Jarvie had to look lively to save by the post.
Jarvie did well again on the half hour when a weak headed back pass by Scott Ross landed well short and Stuart Noble, the Berwick no.9, was denied by the keeper who stretched his arms to their full extension to grab the ball as it looped over his head.
At the other end his opposite number Youssef Bejoui, was a virtual spectator as Peterhead created no threat.
Berwick could have scored within 5 minutes of the re-start, Kevin McDonald sliding in on a Currie cross to send the ball narrowly wide.
The Blue Toon responded with a weak shot by Rory McAllister that Bejoui made a meal of by the post before grabbing control at the second attempt.
After 61 minutes a McAllister cross from the left looked to have found the head of Robbie Winters but he lost the flight of the ball and failed to make contact.
Everything was coming through McAllister for the home side so it was no surprise when he was involved in the winner after 77 minutes. His step over from Brian Deasley’s low cross from the left side of the penalty area found fellow substitute Maguire who guided the ball home from 8 yards.
Berwick could have drawn level on several occasions near the end but had a shot that went into the net ruled off for a foul on Jarvie followed by a couple of offside decisions that on another day might have been given, saw Peterhead hang on for three valuable, if not fully deserved, points.
Peterhead: Jarvie, Smith (Deasley 56), Noble, Ross, Macdonald, Harding, Strachan, Redman, McAllister (Kelly 86), Winters (Macguire 69), McLaughlin. Subs: McCallum, Fitzgerald