Dorian Pickens scored 23 points, Reid Travis had 19 with nine rebounds and Stanford held on to beat California 73-68 on Friday night.
Marcus Allen added 11 points for the Cardinal, who overcame an early 12-point deficit to beat their cross-bay rivals for the 21st time in the last 24 meetings between the two teams at Maples Pavilion.
Stanford (13-13, 5-9 Pac-12) won for only the second time in seven games and split the season series with California.
Pickens had nine points, including a pair of 3-pointers, as part of a 20-5 run in the second half when the Cardinal pulled away.
After California closed within 62-56 on Grant Mullins' 3-pointer with 4:54 remaining, Allen made two free throws and Pickens scored on a jumper from the free-throw line as he was falling backward onto the court.
Jabari Bird scored 23 points and set a career-high with seven 3s for the Golden Bears (18-8, 9-5). Ivan Rabb added 16 points and 13 rebounds after being slowed by foul trouble in the first half.
California's loss was costly. The Bears failed to complete their first season sweep of the Cardinal since 2009-10 and missed a chance to strengthen their position in the Pac-12 standings.
As it is, coach Cuonzo Martin's team could drop into a tie for fourth depending on the outcome of USC's game against No. 6 UCLA on Saturday.
Stanford got off to a streaky start. After missing nine of their first 10 shots and falling behind by 12 midway through the first half, the Cardinal made eight straight and rallied to take a 38-34 halftime lead.
at No. 18 UCLA 90, No. 9 Washington 79: Jordin Canada scored 22 points and Monique Billings added 18 as the Bruins (19-7, 10-5 Pac-12) overcame a 39-point performance by the Huskies' Kelsey Plum. Plum made 14 of 15 free throws but committed seven turnovers for the Huskies (24-4, 12-3).
at USC 80, Washington State 64: Freshman guard Minyon Moore scored a career-high 32 points to help the Trojans (14-12, 5-10 Pac-12 ) avenge a loss to the Cougars (10-16, 5-10) last month at Pullman, Wash. Forward Kristen Simon had 14 points and 11 rebounds for USC.
Pepperdine at Loyola Marymount 3 p.m.
Long Beach State at UC Santa Barbara 4 p.m.
UC Davis at Cal State Fullerton 7:30 p.m.