STANFORD — The Stanford women’s soccer team did it again Friday night at Cagan Stadium. And, the Cardinal did it when it counted the most.

Stanford came from behind to defeat No. 6 UCLA 2-1 to advance to the College Cup and a shot at a second consecutive national championship.

“We are a second-half team,” said sophomore Lo’eau LaBonta, who scored both Cardinal goals after intermission. “We’ve been down numerous times during the season, starting with Santa Clara … when we came back to win 6-1.”

No. 1 Stanford (21-1-1) will play North Carolina in San Diego on Friday in one semifinal. The Tar Heels defeated BYU 2-1 in double overtime. Penn State and Florida State square off in the other semifinal.

North Carolina defeated Stanford in the final in 2009.

“From the beginning, the No. 1 goal has been winning the national championship,” said senior Rachel Quon.

Stanford’s two goals came off the foot of LaBonta — both after corner kicks.

“We prepared for their corner kicks,” said UCLA coach B.J. Snow. “There was a scramble in the box on both, a scrum and they got their foot on it and buried both.”

The lone UCLA (18-3-2) goal came early on a 25-yard shot inside the right post by Sam Mewis off an assist by sophomore Sarah Killion.

The Bruins dominated possession in the first half, spending much of the time on offense. However, they held only a slight edge in shots on goal (5-4). UCLA outshot Stanford 13-12 for the game.

Stanford’s senior class has a record of 94-3-4 in the past four years and is 52-0-1 at home.

“I didn’t mention the record because I didn’t want to jinx it,” said Stanford coach Paul Ratcliffe “They’ve never lost at home. It’s truly incredible.”