Justin Cobbs made the shot of his life, and Arizona's unbeaten season is history.

Cobbs swished a fall-away 17-footer from the left baseline with 0.9 seconds left as Cal stunned the nation's No. 1 team 60-58 in front of a delirious capacity crowd of 11,877 fans at Haas Pavilion on Saturday night.

Students stormed the court after Cobbs' shot only to be pushed back into the stands by security because the game was not over.

After a Cal timeout, Richard Solomon intercepted T.J. McConnell's 60-foot inbounds pass -- and students flooded the floor again.

The Bears (15-7, 6-3 Pac-12), who had lost their three previous games, scored just their third win over a No. 1 team, and their first in 20 years and two days.

Cal hadn't beaten a No. 1 since Jason Kidd's triple-double powered an 85-70 win over UCLA in 1994. Now 3-24 all-time vs. the nation's No. 1, Cal also beat Cincinnati in the 1960 national semifinals.

Arizona (21-1, 8-1) had the ball with 42 seconds left and ran time off until Nick Johnson missed a jumper with 17 seconds remaining. Tyrone Wallace rebounded for the Bears, and Cobbs delivered his game-winner.

Cobbs finished with 19 points -- 16 in the second half. He scored Cal's final 12 points.

With the scored tied at 58, Richard Solomon got Cal the ball by picking it from Rondae Hollis-Jefferson with 1:12 left. The Bears used a timeout to set up a play, but David Kravish's baby hook rimmed out with 50 seconds left.

Solomon picked up his third foul 3 minutes into the second half, but the Bears continued to go at the Wildcats. A 3-pointer by Tyrone Wallace and a hook by Kravish gave Cal a 42-37 lead with 13:36 left.

The Cal lead reached 50-42 when Cobbs made a pair of free throws with 11 minutes left. Solomon went out again after picking up his fourth foul with 8:19 left, and Arizona made a move.

Center Kaleb Tarczewski tied it at 54 by making his 11th and 12th free throws without a miss. The sophomore 7-footer then dunked to give UA the lead with 4:17 left.

The score was tied twice more.

Cal led by as many as nine points and trailed for a total of just 16 seconds in a well-played first half before taking a 30-29 lead into the break.

Solomon had 12 points and seven rebounds and Kravish had eight points, six rebounds and three blocks in the half. Aaron Gordon had six points, 10 rebounds and five assists for the Wildcats.