Andrews served twice as mayor of Rochester in 1840 and 1856. He was a New York delegate to the 1856 Republican National Convention.