SAN FRANCISCO (AP) — Hunter Pence hit a home run and sacrifice fly, Buster Posey also homered to back Madison Bumgarner’s first win since opening day, and the San Francisco Giants held on to beat the San Diego Padres 5-4 on Monday night.

Bumgarner (2-2) struck out nine in 6 2-3 innings to snap a two-start skid with his first victory in four starts since April 4 at Milwaukee.

READ MORE: VIDEO: Asian Man Attacked In Oakland, Tries to Fight Back In Attempted Robbery

Angel Pagan drove in two runs from his new No. 9 hole as the Giants won for the third time in four games following a five-game losing streak.

READ MORE: Video: Violent Carjacking From Richmond Auto Dealership; Worker Hurled From Hood Attempting To Stop Thief

Pence connected for his fourth home run leading off the fourth to put San Francisco ahead 2-1 and Pagan hit an RBI double four batters later. Pence added a sacrifice fly the next inning. Posey hit his third homer in the seventh.

MORE NEWS: San Francisco Public Elementary School Students Prepare For Monday Return To Classrooms

© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.