In the winter and spring of 1864, when the German Confederation invaded and occupied the German-speaking provinces of Denmark (Schleswig and Holstein), Napoleon III recognized the threat that a unified Germany would pose to France, and he looked for allies to challenge Germany, without success.