At the time of the invasion, Napoleon was at the height of his power with virtually all of continental Europe either under his direct control or held by countries defeated by his empire and under treaties favorable for France.