After he had triumphed on the European continent against the other major European powers, Napoleon contemplated an invasion of the British mainland. That plan collapsed after the annihilation of the Franco-Spanish fleet at Trafalgar, coinciding with an Austrian attack over its Bavarian allies.