 Napoleon's army occupied Graz in 1797.In 1809, the city withstood another assault by the French army.During this attack, the commanding officer in the fortress was ordered to defend it with about 900 men against Napoleon's army of about 3,000.