The story
Popularized from an 1847 translation by Agnes Strickland of a quote attributed to William of Orange during the French invasion of 1672 on his being advised to surrender Holland to Louis XIV: "No, I mean to die in the last ditch."
Etymology from Wiktionary, CC BY-SA 4.0.