 He became an officer, was wounded in action, and resigned his commission in 1774 with the demobilization of the Russian army.About 1775 Ziegler emigrated to Lancaster County, Pennsylvania, soon before shooting began in the American Revolutionary War.He served in the Continental Army as a lieutenant and adjutant under Colonel William Thompson in the 1st Pennsylvania Regiment, a unit with many German immigrants.