The United States has defeated Spain 107-100 to win basketball gold at the London 2012 Olympics.
The Americans 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 it retained its 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 its most serious test after the Americans had won their first seven games by an average margin of 35 points.
Both teams rushed the ball up court 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 half-time at 59-58.
The US was still clinging to its 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.
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 Gasol, who scored the first 13 points for his team at the start of the third quarter to help his side take 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.