 Later, as Secretary of the newly formed Missouri Territory (1812–1821), he became acting governor in the frequent absences of Territorial Governor William Clark.In the August 1824 election, Bates was elected the second governor of Missouri.He died in office in August 1825 in Chesterfield, Missouri, due to a short illness thought to be pneumonia.