The libretto was mainly written in early 1927 and the music was finished in the spring of 1929, although both text and music were partly revised by the authors later. An early by-product, however, was the Mahagonny-Songspiel, sometimes known as Das kleine Mahagonny, a concert work for voices and small orchestra commissioned by the Deutsche Kammermusik Festival in Baden-Baden and premiered there on 18 July 1927. The ten numbers, which include the "Alabama Song" and "Benares Song", were duly incorporated into the full opera. The opera had its premiere in Leipzig in March 1930 and played in Berlin in December of the following year. The opera was banned by the Nazis in 1933 and did not have a significant production until the 1960s.