With Anthony Roberson firing away from outside and David Lee hammering away on the inside, No. 22 Florida withstood every challenge from Alabama.
Roberson made six 3-pointers and scored 26, and Lee matched his career scoring high with 24 in an 88-78 victory Tuesday night.
The Gators (13-4, 4-2 Southeastern Conference) held Alabama to four points in the final 6:31, and their two stars seemed to take turns hitting the big, rally-ending shot.
"We pulled together," said Roberson, who made 3-of-6 3-pointers in each half and had five assists. "We looked into each other's eyes and knew we needed to get this road victory."
Alabama (11-6, 3-3) overtook Florida briefly on Kennedy Winston's 3-pointer off a nice pump fake with 6:48 left for a 72-71 lead. Then, Roberson hit a basket and a free throw, and it was Lee's turn again.
Lee hit two free throws after rebounding Matt Walsh's miss from the line and added a bank shot.
The pair combined for 15 straight points for the Gators, who had no problem scoring against a team giving up a league-best 59 points in SEC play. Alabama had won 11 in a row at home.
"We played with so much toughness and heart and energy, and we just came up a little bit short," Tide coach Mark Gottfried said. "We were playing as hard as we could.
"We didn't make as many plays as we needed to late in the game. We just didn't make them at key times and they did."
Antoine Pettway had 12 points for the Tide and hit two free throws to cut it back to 80-76, but Roberson answered with his final 3-pointer.
Lee was 8 of 12 from both the field and the free-throw line and had four offensive rebounds. On the perimeter, Roberson repeatedly confounded the Tide defenders.
Walsh added 13 points for the Gators, who committed only seven turnovers.
Winston hit five second-half 3-pointers, including three in a row to bring Alabama back from an early 13-point deficit. He finished with 25 points, 21 after halftime.
Gottfried was not even sure Winston would be able to play until shortly before the game because of a sore knee.
Chuck Davis had 15 points and 10 rebounds, but he committed six turnovers and didn't score in the second half for the Tide.
Alabama played its second straight game without leading scorer Earnest Shelton (sprained knee ligament).