Bertolt Brecht's "The Threepenny Opera" was written in 1928.
The timing of the writing of the play is important because of its historical context.
Brecht was writing in Germany between World War I and World War II. During this time, Germany was experiencing serious social problems. It had lost WWI and had been forced to pay large sums of money to the winning powers.
These reparations had damaged Germany's economy tremendously and had helped create a sense of chaos in German society. Adding to this was the fact that Germany had been stripped of its colonies and its military power.
So Germany was a newly-poor and newly-weak country. This made for tremendous social chaos. Brecht's play is a manifestation of this chaos.