 The opera was composed between June 1873 and January 1874, and its premiere took place on 27 March 1874 at the Prague Czech Theatre under the direction of Smetana.However, this premiere was not successful and the opera was rewritten in 1874.The spoken dialogue was replaced by through-composed recitatives and some of the music and characters were reworked.