Goals from Joss Labadie and Ash Taylor ensured Tranmere Rovers ended a six-game losing run in all competitions by beating Bury at Prenton Park.
Labadie gave Rovers the lead midway through the first half with a low shot from just inside the area.
Mark Hughes and substitute Ashley Eastham both went close for Bury with their headers shaving the crossbar.
But Taylor doubled Rovers' lead in the 90th minute by turning in Zoumana Bakayogo's pass from close range.
The victory was Tranmere's first in League One in seven attempts.