 Lewis was first elected mayor in the election of December 8, 1862.He defeated his opponent S. U. Williams by about 300 votes.Pursuant to Roxbury city charter, Lewis was sworn into office on the first Monday of the new year, January 5, 1863.