By early July 1866 the differences between Austria-Hungary and Prussia had been settled on the battlefields of Bohemia. By the end of that month there were Prussian troops occupying parts of Baden and had resigned. A under Karl Mathy took over on 27 July 1866. ( Mathy, unlike his senior government colleagues, had favoured the Prussian side in the recent war.) Stable resigned from the government and went into retirement. In February 1867 he was persuaded to return, serving as Minister for Justice in . However, after Mathy died in February 1868, under Julius Jolly took over. Jolly came from a new political generation: he had been close to Mathy but never to Stabel, and this time, when Anton Stabel retired from government on 13 February 1868, his retirement was permanent.