Stanford has played in several one- and two-run games to UCLA during its 13-game winning streak over the Cardinal. This time, Stanford took advantage of Bruins' mistakes and played solidly behind Dwyer and Lee.

The Cardinal has matched its conference victory from last year. In fact, Stanford has not won more than two conference games in a season since finishing 5-19 in 2014.

Stanford scored four runs in the third inning and the Cardinal pitching and defense took care of the rest in ending a 13-game losing streak to the 12-time NCAA champion Bruins.

Hannah Howell collected three hits and drove in a run, Maddy Dwyer and Carolyn Lee combined on a seven-hitter and Stanford walked away from Smith Family Stadium in Westwood with a crisp, new 'W' shoved in its collective pockets following a 4-1 victory over third-ranked host UCLA in a Pac-12 Conference contest Sunday.

Lee's 6.60 ERA is a little deceptive. Take away her worst effort and she's at 5.60. The same holds true for Dwyer and Kiana Pancino. Throw out the worst outing for each and Dwyer is suddenly at 1.48 and Pancino is at 2.92.

Dwyer started the game and went 3 2/3 scoreless innings, with four strikeouts. After a two-out double, she was replaced by Lee (2-3), who earned the win.

It also matched the highest-ranked win for Stanford since knocking off No. 3 Alabama, 4-1, on Feb. 14, 2015.

The game ended, with runners on first and third, as Lee got the final out on a fly ball to center fielder Lauren Frost. The Bruins had runners on in all but the sixth inning.

UCLA avoided the shutout, scoring a run in the bottom of the fifth inning. Jordan singled through the right side, bringing home shortstop Kinsley Washington.

Shortstop Kristina Inouye followed with a single that led to three runs. A fielding error by UCLA's Aaliyah Jordan allowed Cowles to score and Inouye to get to second.

Senior Lauren Wegner led off the third with an infield single. She advanced to third as Frost laid down a sacrifice bunt but reached on a throwing error by UCLA catcher Paige Halstead and advanced to second. After third baseman Teaghan Cowles was intentionally walked, sophomore Hannah Howell drove in the first run of the game with a single to left field.

A big third inning gave the Cardinal a 4-0 advantage over the Bruins, the largest deficit for UCLA at home this season.

Follow Palo Alto Online and the Palo Alto Weekly on Twitter @paloaltoweekly , Facebook and on Instagram @paloaltoonline for breaking news, local events, photos, videos and more.

Cardinal softball shock No. 3 Bruins in Pac-12 play