he served in the new york state legislature (1797–1798) and the new york senate (1798–1802). he served the u.s. senate (1802–1803). he served 10 terms as mayor of new york city (1803–1815). during his 10 terms as mayor, he promoted public education, city planning, public sanitation, and relief for the poor.