Technically, they were going after the dwarves stolen treasures that Smaug had plundered from the dwarven halls.