Full story
After the clash with Azog, Gandalf takes Thorin's company to the home of Beorn, a skin-changer who turns into a bear. That night, the Necromancer summons Azog to Dol Guldur and orders him to prepare for war. Azog hands the hunt for Thorin to his son, Bolg. Beorn escorts the Dwarves to the edge of Mirkwood. There Gandalf finds Black Speech carvings and, at Galadriel's request, decides to check the tombs of the Nazgûl. Before leaving, he warns them: stay on the path.
Of course they don't. Lost, the Dwarves end up wrapped in webs by giant spiders. Bilbo uses the ring to free them and, after dropping it for a moment, kills a creature to get it back. It's the first time he feels the ring's dark pull. The Wood-elves, led by Legolas and the captain Tauriel, finish off the spiders and arrest the Dwarves. Thorin faces King Thranduil, who abandoned Erebor when Smaug attacked, and lands in a cell. An invisible Bilbo frees everyone and hides them in wine barrels sent down the river. The escape turns into a three-way fight between Elves, Bolg's orcs and Dwarves riding the rapids. Kíli is hit by a Morgul arrow.
Thranduil seals his realm after learning an army is gathering in the south. Tauriel disobeys and goes after the Dwarves, and Legolas follows her. Gandalf and Radagast find the tombs empty: the Nine have been called. The bargeman Bard sneaks the company into Lake-town. Thorin promises the Master a share of the treasure and gets weapons and support. The wounded Kíli stays at Bard's house with Fíli, Óin and Bofur. Bard, who keeps his ancestor's black arrow, is thrown in jail by the Master. Bolg raids the town, and Tauriel and Legolas arrive to save the Dwarves. Tauriel heals Kíli.
At the mountain, Bilbo finds the secret door at the last second and goes in alone to fetch the Arkenstone. He wakes Smaug. The dragon already knows the Dwarves' plan and toys with the hobbit before trying to roast him. At Dol Guldur, Gandalf walks in alone, is overpowered by the Necromancer and learns who he really is: Sauron. Captured, he watches Azog march an army toward the Lonely Mountain.
Inside Erebor, the Dwarves relight the forges with Smaug's own fire and melt a giant gold statue to bury him alive. It seems to work. But the dragon bursts out covered in gold, leaves the mountain and flies off to destroy Lake-town. Bilbo watches and asks what they've done. The movie ends right there.

