Kayla Bonstrom had four hits, including a home run, and the Stanford softball team topped visiting Santa Clara, 11-3, in a nonconference game Tuesday night.
Jenna Rich also homered and drove in two as the Cardinal (36-17) won its fourth straight and seven of eight overall.
Nyree White (3-1) pitched four innings of shutout relief to gain credit for the victory.
Erin Ashby, Hanna Winter and Leah White each added two hits for Stanford, which hosts Arizona in a three-game Pac-12 series beginning Thursday at 7 p.m.
Stanford had the tying run on second base in the bottom of the ninth inning but failed to score in dropping a 4-3 nonconference decision to visiting USF on Tuesday.
The Cardinal (26-17) will look to rebound this weekend when Arizona visits for a three-game Pac-12 series beginning Friday at 6:30 p.m.
The Dons, winners of six straight and currently second in the WCC, scored three times in the top of the fifth to pull ahead, 4-2.
Stanford answered with a run in the bottom of the fifth, but the score remained at 4-3 the rest of the way as both bullpens delivered solid efforts.
For the Cardinal, David Schmidt and Garrett Hughes combined to throw 4 2/3 scoreless innings.
Menlo School grad Danny Diekroeger, Austin Wilson and Wayne Taylor each recorded two hits while Palo Alto resident Alex Blandino hit a pair of sacrifice flies.
Bobby Zarubin (3-2) took the loss, throwing 4 1/3 innings and giving up four runs on nine hits. He walked one and struck out three.
USF closer Adam Cimber struck out four of the six batters he faced to record his eighth save.