As a result of Napoleon's victory over Austria in the Battle of Austerlitz, the Holy Roman Empire was dissolved in 1805. On July 12, 1806, 16 states in present-day Germany, including the remaining counties of Nassau-Usingen and Nassau-Weilburg, formally left the Holy Roman Empire and joined in the Confederation of the Rhine. Napoleon was its "protector". Under pressure from Napoleon, both counties merged to form the Duchy of Nassau on August 30, 1806.