Thorin Oakenshield, the leader of the band of dwarves hoping to regain the treasure under the mountain, is killed in the Battle of the Five Armies. He doesn't die during the battle, but succumbs to his wounds shortly after the battle. Fili and Kili were also killed during the battle. Bilbo, wearing the ring making him invisible, had been knocked unconscious during the battle so he didn't find out how the battle ended until it was all over. Before Thorin dies, he calls Bilbo to his side so that he can ask for Bilbo's forgiveness. Thorin realizes that greed had taken over his better judgment and that Bilbo was right all along - simple pleasures are better than hoards of gold.