Brecht was first motivated to prepare a version of The Beggar's Opera by the successful revival of the original by Nigel Playfair in London in 1920. He offered the idea to the impresario Ernst Josef Aufricht (de) who was seeking a production to launch his new theatre company at the Theater am Schiffbauerdamm in Berlin. The score by Weill uses only one of the melodies which Johann Pepusch wrote for the original Beggar's Opera. The title Die Dreigroschenoper was determined only a week before the opening; it had been previously announced as simply The Beggar's Opera (in English), with the subtitle "Die Luden-Oper" ("The Pimp's Opera").[2]

Writing in 1929, Weill made the political and artistic intents of the work clear:

With the Dreigroschenoper we reach a public which either did not know us at all or thought us incapable of captivating listeners [...] Opera was founded as an aristocratic form of art [...] If the framework of opera is unable to withstand the impact of the age, then this framework must be destroyed....In the Dreigroschenoper, reconstruction was possible insofar as here we had a chance of starting from scratch.[3]

This reworking of opera/music theatre traditions is in line with Brecht's style of "epic theatre", where "in place of an illusion of real action" audiences were confronted with "narrative, montage,and direct exhortation" to produce an effect of alienation (in German, "Verfremdung").[4] Weill claimed at the time that "music cannot further the action of the play or create its background", but achieves its proper value when it interrupts the action at the right moments."[5]

Weill's score shows influence of jazz and German dance-music of the time.[6] The orchestration involves a small ensemble with a good deal of doubling-up on instruments (in the original performances, for example, some 7 players covered a total of 23 instrumental parts, though modern performances typically use a few more players).[7]

The Threepenny Opera was first performed at the Theater am Schiffbauerdamm in 1928 on a set designed by Caspar Neher. Despite an initially poor reception, it became a great success, playing 400 times in the next two years. The performance was a springboard for one of the best known interpreters of Brecht and Weill's work, Lotte Lenya, who was married to Weill. Ironically the production became a great favourite of Berlin's 'smart set' - Count Harry Kessler recorded in his diary meeting at the performance an ambassador and a director of the Dresdner Bank (and their wives), and concluded "One simply has to have been there."[8]

By 1933, when Weill and Brecht were forced to leave Germany by the Nazi seizure of power, the play had been translated into 18 languages and performed more than 10,000 times on European stages.[9]

In the United Kingdom, the first fully staged performance was given on 9 February 1956, under Berthold Goldschmidt, although there had been a concert performance in 1933, and a semi-staged performance on 28 July 1938. In between, on 8 February 1935 Edward Clark conducted the first British broadcast of the work. It received scathing reviews from Ernest Newman and other critics.[10] But the most savage criticism came from Weill himself, who described it privately as "... the worst performance imaginable … the whole thing was completely misunderstood". But his criticisms seem to have been for the concept of the piece as a Germanised version of The Beggar's Opera, rather than for Clark's conducting of it, of which Weill made no mention.[11][12][13]

The first American production, adapted into English by Gifford Cochran and Jerrold Krimsky and staged by Francesco Von Mendelssohn, featured Robert Chisholm as Macheath. It opened on Broadway at the Empire Theatre, on April 13, 1933, and closed after 12 performances. Mixed reviews praised the music but slammed the production, with the critic Gilbert Gabriel calling it "a dreary enigma".[15]

In 1930 the work was premiered in Moscow at the Kamerny Theatre, directed by Alexander Tairov. It was the only one of Brecht's works to be performed in Russia during his lifetime. Izvestia disapproved: "It is high time that our theatres ceased playing homage to petit-bourgeois bad taste and instead turned to more relevant themes."[17]

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. The details of the original 1928 text have often been substantially modified in later productions.[20]

A draft narration by Brecht for a concert performance begins: "You are about to hear an opera for beggars. Since this opera was intended to be as splendid as only beggars can imagine, and yet cheap enough for beggars to be able to watch, it is called the Threepenny Opera."[21]

A street singer entertains the crowd with the illustrated murder ballad or Bänkelsang, titled "Die Moritat von Mackie Messer" ("Ballad of Mack the Knife"). As the song concludes, a well-dressed man leaves the crowd and crosses the stage. This is Macheath, alias "Mack the Knife".

The story begins in the shop of Jonathan Jeremiah Peachum, the boss of London's beggars, who outfits and trains the beggars in return for a slice of their takings from begging. In the first scene, the extent of Peachum's iniquity is immediately exposed. Filch, a new beggar, is obliged to bribe his way into the profession and agree to pay over to Peachum 50 percent of whatever he made; the previous day he had been severely beaten up for begging within the area of jurisdiction of Peachum's protection racket.

After finishing with the new man, Peachum becomes aware that his grown daughter Polly did not return home the previous night. Peachum, who sees his daughter as his own private property, concludes that she has become involved with Macheath. This does not suit Peachum at all, and he becomes determined to thwart this relationship and destroy Macheath.

The scene shifts to an empty stable where Macheath himself is preparing to marry Polly once his gang has stolen and brought all the necessary food and furnishings. No vows are exchanged, but Polly is satisfied, and everyone sits down to a banquet. Since none of the gang members can provide fitting entertainment, Polly gets up and sings "Seeräuberjenny", a revenge fantasy in which she is a scullery maid turning pirate queen to order the execution of her bosses and customers. The gang becomes nervous when the Chief of Police, Tiger Brown, arrives, but it's all part of the act; Brown had served with Mack in England's colonial wars and had intervened on numerous occasions to prevent the arrest of Macheath over the years. The old friends duet in the "Kanonen-Song" ("Cannon Song" or "Army Song"). In the next scene, Polly returns home and defiantly announces that she has married Macheath by singing the "Barbarasong" ("Barbara Song"). She stands fast against her parents' anger, but she inadvertently reveals Brown's connections to Macheath which they subsequently use to their advantage.

Polly warns Macheath that her father will try to have him arrested. He is finally convinced that Peachum has enough influence to do it and makes arrangements to leave London, explaining the details of his bandit "business" to Polly so she can manage it in his absence. Before he leaves town, he stops at his favorite brothel, where he sees his ex-lover, Jenny. They sing the "Zuhälterballade" ("Pimp's Ballad") about their days together, but Macheath doesn't know Mrs Peachum has bribed Jenny to turn him in. Despite Brown's apologies, there's nothing he can do, and Macheath is dragged away to jail. After he sings the "Ballade vom angenehmen Leben" ("Ballad of the Pleasant Life"), another girlfriend, Lucy (Brown's daughter) and Polly show up at the same time, setting the stage for a nasty argument that builds to the "Eifersuchtsduett" ("Jealousy Duet"). After Polly leaves, Lucy engineers Macheath's escape. When Mr Peachum finds out, he confronts Brown and threatens him, telling him that he will unleash all of his beggars during Queen Victoria's coronation parade, ruining the ceremony and costing Brown his job.

Jenny comes to the Peachums' shop to demand her money for the betrayal of Macheath, which Mrs Peachum refuses to pay. Jenny reveals that Macheath is at Suky Tawdry's house. When Brown arrives, determined to arrest Peachum and the beggars, he is horrified to learn that the beggars are already in position and only Mr Peachum can stop them. To placate Peachum, Brown's only option is to arrest Macheath and have him executed. In the next scene, Macheath is back in jail and desperately trying to raise a sufficient bribe to get out again, even as the gallows are being assembled. Soon it becomes clear that neither Polly nor the gang members can, or are willing to, raise any money, and Macheath prepares to die. He laments his fate and poses the 'Marxist' questions: "What's picking a lock compared to buying shares? What's breaking into a bank compared to founding one? What's murdering a man compared to employing one?" (These questions did not appear in the original version of the work, but first appeared in the musical Happy End, another Brecht/Weill/Hauptmann collaboration, in 1929 - they may in fact have been written not by Brecht, but by Hauptmann).[22] Macheath asks everyone for forgiveness ("Grave Inscription"). Then a sudden and intentionally comical reversal: Peachum announces that in this opera mercy will prevail over justice and that a messenger on horseback will arrive ("Walk to Gallows"); Brown arrives as that messenger and announces that Macheath has been pardoned by the queen and granted a title, a castle and a pension. The cast then sings the Finale, which ends with a plea that wrongdoing not be punished too harshly as life is harsh enough.

^In the original version, "Pirate Jenny" is sung by Polly during the wedding scene, but is sometimes moved to the second act and given to Jenny. In the 1956 Off-Broadway production starring Lotte Lenya, Polly sang a version of the "Bilbao Song" from Brecht's and Weill's Happy End in the first act wedding scene. Sometimes (i.e. in 1989 recording) it's sung by Polly in the first act and by Jenny in the second act between song 13 and 14 according to the list above.

^In the Marc Blitzstein adaptation, this song was moved to the second act and sung by Lucy.

The ambivalent nature of The Threepenny Opera, derived from an 18th-century ballad opera but conceived in terms of 20th-century musical theatre, has led to discussion as how it can best be characterised. According to critic and musicologist Hans Keller, the work is "the weightiest possible lowbrow opera for highbrows and the most full-blooded highbrow musical for lowbrows".[23]

The Weill authority Stephen Hinton notes that "generic ambiguity is a key to the work’s enduring success", and points out the work's deliberate hybrid status:

For Weill [The Threepenny Opera] was not just ‘the most consistent reaction to [Richard] Wagner’; it also marked a positive step towards an operatic reform. By explicitly and implicitly shunning the more earnest traditions of the opera house, Weill created a mixed form which incorporated spoken theatre and popular musical idioms. Parody of operatic convention – of Romantic lyricism and happy endings – constitutes a central device.[2]

At the end of WWII the first theater performance in Berlin was a rough production of The Threepenny Opera at the Theater am Schiffbauerdamm. Wolf Von Eckardt described the 1945 performance where audience members climbed over ruins and passed through a tunnel to reach the open-air auditorium deprived of its ceiling. In addition to the smell of dead bodies trapped beneath the rubble, Eckardt recollects the actors themselves were "haggard, starved, [and] in genuine rags. Many of the actors … had only just been released from concentration camp. They sang not well, but free."[25]

In 1956, Lotte Lenya won a Tony Award for her role as Jenny in Blitzstein's somewhat softened version of The Threepenny Opera, which played Off-Broadway at the Theater de Lys in Greenwich Village for a total of 2,707 performances, beginning with an interrupted 96-performance run in 1954 and resuming in 1955. Blitzstein had translated the work into English, and toned down some of its acerbities. The production featured Edward Asner (as Mr Peachum), Charlotte Rae as Mrs Peachum, Bea Arthur (as Lucy), Jerry Orbach (as PC Smith, the Street Singer and Mack), John Astin (as Readymoney Matt/Matt of the Mint) and Jerry Stiller (as Crookfinger Jake) as members of the cast during its run.[28]

The Brooklyn Academy of Music presented a production directed by Robert Wilson and featuring the Berliner Ensemble for only a few performances in October 2011. The play was presented in German with English supertitles using the 1976 translation by John Willett. The cast included Stefan Kurt as Macheath, Stefanie Stappenbeck as Polly and Angela Winkler as Jenny. The Village Voice review said the production "turn[ed] Brecht and Weill's middle-class wake-up call into dead entertainment for rich people. His gelid staging and pallid, quasi-abstract recollections of Expressionist-era design suggested that the writers might have been trying to perpetrate an artsified remake of Kander and Ebb's Cabaret.[30]

The Pabst film was shown in its French version in 1931. In 1937 there was a production by Aufricht at the Théâtre de l'Étoile which failed, even though Brecht himself had attended rehearsals. The work was not revived in France until after World War II.[40]

^The word "threepenny" refers to a coin in Britain's pre-decimal currency; the work's title in its English-language translation reflects the common pronunciation of that coin ("THREP-penny"). The coin was discontinued in 1971 after the decimalization of sterling.