BERKELEY, Calif. — Quentin Selma and Korey Lee each homered in the bottom of the ninth inning as California rallied for a 8-7 win over Oregon on Friday night in Pac-12 baseball.

Oregon took a 7-6 lead into the ninth before Selma hit a game-tying home run with one out off reliever Ryne Nelson. After all-American Andrew Vaughn grounded out, Lee hit a walk-off homer.

Oregon (22-17) fell to 7-9 in the conference while Cal (22-14) improved to 9-7.

Cal took the lead with two runs in the bottom of the third off UO starter Cole Stringer after Garret Nielsen doubled and Cameron Eden was hit by a pitch. Selma singled to load the bases before Vaughn hit a sacrifice fly.

Lee followed with a ground out that scored Eden.

Grant Holman added a two-run homer in the fourth inning to put the Bears up 4-0. Sam Wezniak walked with one out before scoring on Holman’s home run.

Oregon homered twice in the sixth inning to close within 4-3.

Gabe Matthews opened the inning with a home run before Jonny DeLuca hit a single. Jakob Goldfarb followed with a two-run homer.

Cal added two runs in the sixth when Wozniak walked and Holman was hit by a pitch with one out. Eden hit a two-out, two-run single.

Stringer allowed six hits and four earned runs in 5 1/3 innings before Peyton Fuller gave up two runs in 2/3 of an inning.

Oregon closed within 6-4 in the top of the seventh when Matthews hit his second home run of the game.

The Ducks went ahead with three runs in the top of the eighth inning beginning when Max Foxcroft walked and Sam Novitske singled before Tanner Smith walked to load the bases. Matthews was hit by a pitch to bring in a run before DeLuca walked to tie the game.

Aaron Zavala hit a sacrifice fly that put the Ducks ahead 7-6.

Matthews had three hits and three RBIs while Novitske and Goldfarb each had two hits.

Rutschman's grand slam highlight for Beavers

CORVALLIS — Oregon State scored nine runs in the seventh inning to break open its Pac-12 Conference baseball game with Washington State on Friday as the Beavers won 18-4.

The No. 2 Beavers (29-10-1, 15-4 Pac-12) got home runs from Adley Rutschman, including a grand slam in the seventh, and Andy Armstrong. Rutschman finished with five RBIs. Kyler McMahon also went 3-for-5 with four RBIs and Joe Casey went 3-for4 with a double.

Brandon Eisert (8-1) got the win, allowing three earned runs over six innings pitched.

The teams resume their series 1:35 p.m. Saturday at Goss Stadium.