On May 9, 1849, together with the leaders of the uprising, Wagner left Dresden for Switzerland to avoid arrest. He spent a number of years in exile abroad, in Switzerland, Italy, and Paris. Finally, the government lifted its ban against him and he returned to Germany.