The film begins on the island of Berk, where the narrative is delivered by Hiccup. He describes the island as nearly inhospitable, with the main threat coming from dragons. The Vikings, led by Hiccup's father, Chief Stoick The Vast, unite to defend their village from an onslaught of dragons stealing their livestock.
Despite wanting to be accepted among the other Vikings, Hiccup is perceived more as a liability than an asset. His peers, including Snotlout, twins Ruffnut and Tuffnut, Fishlegs, and the ambitious Astrid, all train under the guidance of Gobber.
In an attempt to prove himself, Hiccup creates a bolas shooter, but during the ensuing chaos when a Night Fury attacks, he inadvertently attracts the attention of a pursuing dragon. Stoick rescues him and expresses his frustration over Hiccup's reckless behavior. Hiccup, yearning for validation, shares his frustrations with Gobber about wanting to be just like the other Vikings.
The community gathers for a council meeting led by Stoick, who is concerned about their inability to locate the dragons' nest. His conversation with Elder Gothi leads him to consider having Hiccup undergo dragon training to harness his potential. Driven by the desire to fit in, Hiccup ventures into the forest in hopes of finding the Night Fury.
To his surprise, he discovers the dragon ensnared in a trap. When faced with the decision to kill him, Hiccup finds compassion in the dragon's eyes and chooses to free him instead. The dragon, named "Toothless" by Hiccup, shares a bond with him that begins as a friendship, but soon deepens into something more meaningful when Hiccup constructs a prosthetic tail fin to help Toothless fly.
As Hiccup trains with the other teens under Gobber's supervision, his innovative ideas about dragons begin to shine through, while Astrid grows increasingly skeptical of his methods. During a showdown with various dragons, Hiccup impresses his peers with his unique approach to taming dragons, thus gaining their respect but inciting Astrid's suspicions further.
Meanwhile, Stoick is dedicated to training Vikings for a final test involving dragon hunting. In his quest for understanding, Hiccup reveals the existence of the dragons' nest to Astrid. After some initial tension, she joins Hiccup as they uncover the truth about the dragons and the dangers that lurk within their nest, which they later discover to be home to the immense and powerful Red Death.
In a battle against the Monstrous Nightmare, Hiccup attempts to show the Vikings that dragons aren’t enemies. However, tensions rise when Stoick takes action against Toothless, leading to a rift between father and son. Realizing the impending danger, Hiccup takes matters into his own hands, enlisting his peers to rescue Toothless and lead the Vikings to the dragons' nest.
The confrontation culminates in a fierce battle against the Red Death, where Hiccup and Toothless showcase a daring plan to defeat the dragon. In a remarkable display of teamwork, they maneuver through the skies, leading to a victorious yet perilous moment as they manage to subdue the Red Death.
With the dust settling after the battle, the Vikings find hope in the dragons, realizing they may coexist peacefully. Hiccup awakens days later to discover he has lost his foot in the fight and now sports a prosthetic. Yet, the bond with Toothless strengthens, symbolizing a new beginning for Berk where dragons are allies rather than adversaries.
As the film concludes, the youth of Berk soar through the skies on their dragons, while Hiccup's voiceover reflects on the island's transformation and the newfound friendship between Vikings and dragons, marking a significant shift in their way of life. It’s a journey of growth, acceptance, and the realization that the love for dragons has made Berk a better place to be.