Martin Bavidge's late goal was enough to see off Berwick Rangers as Peterhead recorded a third straight league win to leapfrog the visitors into sixth place in Division Three.
The visitors almost got off to the perfect start but for Jamie Barclay, who made a fine save from Bavidge's close-range header.
Barclay's opposite number was called into action just before the interval, but Raymond Jellema was equal to Fraser McLaren's effort from the edge of the area.
Chances remained few and far between in the second half, Conner McGlinchey up next to test Jellema just after the hour mark, but he was denied by another good save.
James Redman came close to breaking the deadlock eight minutes from time, but Barclay produced another good stop.
The Borderers' goalkeeper was finally beaten a minute later, though.
Bavidge's header proved just too powerful as he picked out the top corner.
Berwick: Barclay, Forster, Townsley, Tulloch, McGlinchey, Walker (Ross Gray 65), Notman, Currie, McLaren, Ferguson (Noble 49), Damon Gray (Gribben 80). Subs Not Used: Sorley, McDonald.
Peterhead: Jellema, Tully, MacDonald, McBain, Sharp, Redman, Strachan, Webster, David Ross (Deasley 31), Bavidge, Wyness (Donald 71). Subs Not Used: Duffy, Trialist. Booked: Sharp, Webster.
Goals: Bavidge 83.
Ref: David Somers