When the Courbiere infantry regiment (number 58) was established in 1797, Horn was given command of one of its Grenadier companies. At the outbreak of the 1806 Campaign, he became a Major, and his regiment was part of the garrison of Danzig. Horn distinguished himself by his valiant defence of the Hagelsberg during the siege of Danzig.