HONOLULU -- The Stanford women's basketball team took down the nation's No. 1 team -- and defending national champion -- Baylor Bears 71-69 on Friday at the Rainbow Wahine Classic.

Chiney Ogwumike scored 18 points as the No. 4 Cardinal defeated the top-ranked team in The Associated Press poll for the second time in three seasons.

Stanford toppled Connecticut 71-59 in December 2010 to end the Huskies' NCAA-record 90-game winning streak.

Friday, the Cardinal (3-0) ended the Lady Bears' 42-game winning streak that included a 59-47 loss to Baylor in the national semifinals last April.

"The difference from last (time) is that we made our shots," said Ogwumike, whose reverse layup over reigning player of the year Brittney Griner with 22 seconds left helped seal the game for Stanford. Ogwumike also had eight rebounds.

Sophomore Taylor Greenfield contributed 16 points for the Cardinal, and Toni Kokenis had 15. Joslyn Tinkle scored 11 points to go with four rebounds.

The Bears were led by Griner, who scored 18 of her 22 points in the second half but missed a potential tying shot at the buzzer.

It was the Lady Bears' first defeat since losing to Texas A&M in the regional finals of the 2011 NCAA tournament. Baylor went 40-0 last year.

"We got the ball in Griner's hands and that's what we would've liked," Baylor coach Kim Mulkey said.

Stanford rolled out its fifth different starting lineup in five games, adding junior forward Mikaela Ruef and junior guard Kokenis, a starter on last season's squad, to its Big Three of Ogwumike, Tinkle and Amber Orrange. Ruef grabbed a game-high 12 rebounds.

The Baylor offense struggled early after junior Odyssey Sims went down with an apparent hamstring injury five minutes into the game, leaving game but green freshman Niya Johnson to handle the point.

The Cardinal defense pressed its advantage, returning to the same aggressive double-teaming it used to hold Griner to just 13 points, 11 below her average, in last year's national semifinal,

"Brittney Griner is phenomenal so our game plan was basically to never let her be one on one," Stanford coach Tara Van Derveer said.

Griner, who entered the game averaging 25.5 points in just over 23 minutes per game, did not score her first basket, a soft turnaround jumper, until 5:30 into the first half.

The Cardinal responded with a furious 13-0 run capped by a Kokenis jumper to give Stanford (3-0) held a 25-11 advantage with under six minutes to play in the half.

Baylor adjusted by moving Griner to the high post, clearing space for senior guard Jordan Madden to attack the lane. Madden scored eight points as the Bears outscored the Cardinal 16-3 over the next 31/2 minutes to bring Baylor within a point.

Stanford took a 31-29 lead into the half.

Griner came out firing in the second half, scoring 10 of the Bears' first 12 points to briefly tie the game at 41-41.

"I just played more aggressively," Griner said. "I tried to get to the basket more, and it worked for a while."

Baylor took its first lead since the 15:40 mark of the first half when Destiny Williams stole the ball from Tinkle, scored on a layup and was fouled by Kokenis. Williams hit the free throw to give Baylor a 56-54 lead.

The two teams were tied five times down the stretch until Greenfield hit Tinkle under the basket for an easy layup for a 68-66 Stanford advantage.

On the next Cardinal possession, Ogwumike found an open seam and drove hard to the basket, blowing by Griner for a reverse layup.

Ogwumike credited her sister, former Stanford standout Nneka Ogwumike, with her take-no-prisoners play.

"She told me not to be afraid to attack (Griner)," Ogwumike said.

The Associated Press contributed to this report.