Complex sentence: In the legend, the dragon had been terrorizing villages, so the local villagers eventually killed the dragon and tried to bury its corpse.
Split into simpler sentences: In the legend, the dragon had been terrorizing the villages. However, the local villagers eventually killed the monster and tried to bury its corpse.