In fact, the last mayor I can find who served in a superior political office after their mayoralty was John T Hoffman, who was mayor from 1866-1868 and then NY Governor from 1869-1872.