Within months of the collapse of the Third Coalition, the Fourth Coalition (1806–07) against France was formed by Britain, Prussia, Russia, Saxony, and Sweden. In July 1806, Napoleon formed the Confederation of the Rhine out of the many tiny German states which constituted the Rhineland and most other western parts of Germany. He amalgamated many of the smaller states into larger electorates, duchies, and kingdoms to make the governance of non-Prussian Germany smoother. Napoleon elevated the rulers of the two largest Confederation states, Saxony and Bavaria, to the status of kings.