The United States has defeated Spain 107-100 to win basketball gold at the London 2012 Olympics.
The Dream Team were hot favourites to take out the tournament, but Spain did not not make it easy.
An inspirational effort from superstar Pau Gasol kept the Spaniards in the game throughout the first three quarters of the match, but the US ran away with the game in the fourth quarter.
Kevin Durant lead the way with 30 points for the US as they retained their Olympic title in a repeat of the closely fought 2008 final in Beijing.
Spain, relying on the inside game of Gasol and the outside shooting of Juan-Carlos Navarro, gave the powerhouse US team their most serious test after the Americans had won their first seven games by an average margin of 35 points.
Both teams rushed the ball upcourt in non-stop action to the roaring delight of the 20,000 fans packed into North Greenwich Arena to see the gold medal game, and they were separated by just one point at halftime at 59-58.
The US were still clinging to their one-point lead at 83-82 going into the fourth quarter of what felt like the final round of a knock-down, drag-out fight.
Point guard Chris Paul and LeBron James, however, took control at the start of the final quarter to give the United States some breathing room.
The Americans built a nine-point lead at 95-86 midway through the fourth, with Durant and Kobe Bryant taking turns scoring the ball.
After Spain's Juan-Carlos Navarro sank a jumper and Rudy Fernandez tapped in a follow shot on a fast break, James took the spotlight with a drive he finished with a volatile slam and a three-pointer that restored the US cushion.
James, who completed a grand slam of honours by adding London gold to his NBA MVP award, his NBA Finals MVP and the NBA title he won with the Miami Heat, had 19 points as second-high scorer for the Americans.
"We just wanted to continue to work our habits, continue to share the ball, continue to make plays," said James, who had a team-high four assists.
"But it starts with stops. If we don't get defensive stops we don't build that lead. It's a one-point lead going into the fourth and we were able to build that lead and that's what it's about."
Spanish centre Pau Gasol, who scored the first 13 points for his team at the start of the third quarter to help them take a 71-70 lead, topped the scoring list for Spain with 24 points.
Navarro, who scored 14 points in the first quarter to open up the lane for Gasol to operate in, finished with 21 points.
"We know Spain is a great team they match up well with us, we match up well with them," James said.
"They wanted redemption. We are just happy we were able to make enough plays and come through."
Earlier, Russia beat Argentina in the bronze medal play-off.