In 1785, Benjamin Thompson moved to Bavaria where he became an aide-de-camp to the Prince-elector Charles Theodore.