The North German Confederation (), was first a military alliance of 22 states of northern Germany, and later a federal state. It was preceded by a Zollverein, a customs union that allowed free trade among most German states. The Confederation started in August 1866, and the Kingdom of Prussia was the leading state. On July 1st 1867, the North German Constitution made the alliance a federal state.