Mozart resigned from his position at the Salzburg court and toured throughtout Europe in search of work. He eventually settled in Vienna working for the Archbishop Colloredo.
Working in Vienna for the Archbishop was a tough time for Mozart and the two butted heads often. It culminated with Mozart being dismissed with an actual kick in the rear!