Set in Victorian London, the play focuses on Macheath, an amoral, antiheroic criminal.
Macheath (“Mackie”, or “Mack the Knife”) marries Polly Peachum. This displeases her father, who controls the beggars of London, and he endeavours to have Macheath hanged. His attempts are hindered by the fact that the Chief of Police, Tiger Brown, is Macheath’s old army comrade. Still, Peachum exerts his influence and eventually gets Macheath arrested and sentenced to hang. Macheath escapes this fate via a deus ex machina moments before the execution when, in an unrestrained parody of a happy ending, a messenger from the Queen arrives to pardon Macheath and grant him the title of Baron.