What does Alle Mühe war umsonst mean?

Alle Mühe war umsonst - German to English

most of the difficulty had been for nothing.