That'll teach you! Songs that are lessons

If recounting historical events counts, then I nominate the Gordon Lightfoot ballad The Wreck of the Edmund Fitzgerald.