Years after Beowulf defeated Grendel and his mother, a dragon threatens his kingdom. Beowulf "will fight again, seek fame still / [i]f the dragon hiding in his tower dares / [t]o face [him]" (626-628).
Beowulf grabs his sword and shield in this battle because "his breath will be burning / [h]ot, poison will pour from his tongue", and goes to defeat the dragon (633-634).
Beowulf enters the tower and fights the dragon. He first held his ground against the beast, but soon realized that he "[f]ought with fate against him, with glory / [d]en[ing] him" (686-687).
Beowulf was losing. He needed help but all of his men had abandoned him. All had left except for Wiglaf. Wiglaf saw "[h]ow his king was suffering, buring" (717). He stayed, and fought along side with Beowulf.
The dragon was defeated by Wiglaf and couldn't get up. He asks Wiglaf to get the treasures that were held by the dragon. So Wiglaf "took what he wanted, all the treasures [...] heavy plates / and golden cups and the glorious banner" (796-798).
Wiglaf hurries back before Beowulf dies. He tells Wiglaf to "[t]ake / what [he] left, [...] lead his people / [...h]ave / [t]he brave Greats build [him] a tomb" (821-824). Then Beowulf dies.