The main plot of Beowulf involves his heroic quests and lasting legacy as a revered warrior and king of Geatland. On Beowulf's first heroic quest, he travels overseas to help Hrothgar, king of the Danes, defeat the villainous monster Grendel. Grendel has terrorized Heorot Hall and wreaked havoc on Hrothgar's kingdom for twelve years. However, Beowulf ends up defeating Grendel during a heroic, violent battle at Heorot Hall, where he fatally wounds the monster, who returns to his underwater cave to die. After nailing Grendel's severed arm to the mead hall rafters, Grendel's mother attacks Heorot Hall, and Beowulf embarks on his second heroic quest to defeat Grendel's mother. Beowulf defeats Grendel's mother by using a giant sword in her underwater cave to kill her. Fifty years later, Beowulf embarks on his final heroic quest as king of Geatland. Beowulf defeats a terrifying dragon in his final battle but dies valiantly during the conflict. Beowulf is then given a funeral fit for a king, and his heroic legacy is commemorated.