Japan's fairytale run through the Women's World Cup produced a fitting finale as they saw off the United States on penalties to take the crown.
The USA took the lead in normal time through Alex Morgan, and again through Abby Wambach in extra-time, but Japan refused to lie down and Aya Miyama and Homare Sawa ensured the scores remained locked at 2-2 after 120 minutes of action.
Both sides failed from the spot in the shoot-out, but it was Japan who held their nerve and Saki Kumagi converted the decisive penalty to seal a 3-1 success.
The USA had all the early pressure, Lloyd with the best effort as her drive from just inside the penalty area flashed narrowly over.
Leading striker Wambach then went closest to breaking the deadlock with a fierce right-footed drive which beat keeper Ayumi Kaihori's dive but thundered off the crossbar to safety.
Japan finally began to establish themselves in the game but, after a training-ground corner to the edge of the box, Nahomi Kawasumi's wild finish over the bar summed up their lack of penetration.
Youngster Morgan, a half-time substitute for the injured Lauren Cheney, almost made an immediate impact when she poked Heather O'Reilly's cross against the post. The rebound struck Kaihori and bounced across goal, but captain Sawa cleared.
The breakthrough came in the 69th minute from Morgan, who ran on to Megan Rapinoe's long pass, held off Kumagai, took a touch and finished powerfully across Kaihori with her left foot.
But Japan equalised with 10 minutes remaining when Rachael Buehler and Alex Krieger got in a mess defending substitute Yuki Nagasato's cross and Miyama took full advantage to take the game into extra time.
Morgan shot well wide after again beating Kumagai, who twice stood firm to prevent the powerful Wambach reaching dangerous crosses.
But Wambach was not to be denied and netted her fourth headed goal of the tournament, stooping to power home the impressive Morgan's cross.
Sawa and Nagasato were unable to profit after the American defence did their best to contrive another Japanese equaliser and States captain Christie Rampone cleared as full-back Yukari Kinga's effort bobbled goalwards - but again Japan had something up their sleeves.
Miyama's corner to the near post was met by a leaping backheel from Sawa, which took a slight touch off Wambach and nestled in the net.
Wambach skied a glorious chance for a winner, again under pressure from Kumagai, before Japan's Azusa Iwashimizu was shown the first ever red card in a women's World Cup final for a foul on Morgan which denied a goalscoring chance and ensured penalties.
Boxx's poor spot-kick was saved by the trailing leg of Kaihori and, after Miyama put Japan ahead, Lloyd blazed over.
Hope Solo denied Nagasato but Kaihori saved well from substitute Heath and Mizuho Sakaguchi's effort squeezed under Solo's dive.
Wambach converted confidently but Kumagai hammered a superb last penalty into the top corner to secure the trophy for the underdogs.