The full plot of How to Train Your Dragon (2010) is the story of a boy who learns that dragons can be understood instead of fought, and it ends with a battle that costs him part of his left leg.
Hiccup brings the Night Fury down with a homemade launcher, then finds it trapped and wounded and lets it go. He names the dragon Toothless and builds a replacement tail fin so it can fly again, with Hiccup riding in a harness. While he secretly studies how dragons behave, Hiccup becomes the star of his dragon training class, using kindness in place of force.
Astrid grows suspicious of his sudden success, and Toothless eventually shows her and Hiccup the hidden nest where the dragons live. There they discover a huge dragon, the Red Death, which forces the others to bring it food.
Hiccup's secret comes out when Toothless is captured during his final exam. Stoick, believing his son has betrayed the village, disowns him and sails with the fleet to find the nest. Hiccup frees Toothless and rallies his friends to ride the training dragons into the battle, and Stoick sees that his son was right all along.
Hiccup and Toothless defeat the Red Death, but Hiccup loses part of his left leg. He wakes up at home to find that Gobber has made him a new prosthetic foot. Dragons now live alongside the Vikings, and Hiccup is accepted by his father and the village.