 During his final term in the Maine Senate, Marshall was elected Senate President.With the outbreak of the American Civil War, Marshall left elected office and became a major in the 4th Maine Volunteer Infantry Regiment, which assembled in Rockland, Maine in May 1861.Marshall was later transferred to the 7th Maine Volunteer Infantry Regiment, where he was at first a lieutenant colonel and later the commanding officer.