 On 8 April 1866, the Italian government signed a military alliance with Prussia, through the mediation of Emperor Napoleon III of France.Italian armies, led by General Alfonso Ferrero La Marmora, were to engage the Austrians on the southern front.Simultaneously, taking advantage of their perceived naval superiority, the Italians planned to threaten the Dalmatian coast and seize Trieste.