The
North German Confederation () was a federation of 22 previously independent states of northern
Germany, with nearly 30 million inhabitants. It was the first modern German
nation state and the basis for the later
German Empire (1871–1918), when several south German states such as
Bavaria joined.