Evan Williams’ 12th-inning home run gave Oregon a 5-4 walk-off win over No. 20 Arizona State on Saturday at PK Park.

The Ducks’ win broke a 21-game win streak for the Sun Devils (21-1, 4-1 Pac-12), who took their first loss of the season. Oregon upped its record to 12-8 overall and 2-3 in Pac-12 play.

Williams had come in as a pinch hitter in the 10th inning and stayed in to play left field.

The Sun Devils scored a pair of runs in the seventh and eighth innings to tie the game at 4-4 after Oregon scored four runs in the third inning, highlighted by Max Foxcroft’s two-run single.

Nico Tellache (3-1) got the win as he pitched an inning in relief. Robert Ahlstrom started and went six innings without surrendering a run. Ryne Nelson came on in relief and pitched five innings, giving up four runs while striking out 10.

Jonny DeLuca went 2-for-4 with a pair of walks to lead the Ducks at the plate.

Oregon and Arizona State play the third game of their three-game series Sunday at noon at PK Park.