The war ended with the Treaty of Schönbrunn, which was regarded as harsh towards Austria as she lost her Mediterranean ports and 20% of her population. Despite the eventual French victory, their defeat at Aspern-Essling showed that Napoleon could be defeated on the battlefield. The war led to the Tyrolean Rebellion, the 1809 Gottscheer rebellion and rebellions in Italy which, although suppressed, foreshadowed future nationalist and anti-French risings. After Schönbrunn, Austria became a French ally and this was cemented by the marriage of Napoleon to the Austrian princess Marie Louise.