In 1794 he was elected to the
Massachusetts legislature, and in 1796 was appointed by President
George Washington to be U.S. Attorney for Massachusetts. In 1797, he was elected
U.S. Representative from Massachusetts as a Federalist and a strong advocate for centralized government, in which office he served until 1801. He was appointed United States U.S. Attorney for Massachusetts by President
John Adams (1801–1802), and again served in the state legislature from 1802 to 1817, serving several terms as
President of the state senate (1805–1806, 1808–1811). He was elected a Fellow of the
American Academy of Arts and Sciences in 1804. In subsequent years, Otis was elected
U.S. Senator from Massachusetts (1817–1822), and then
Mayor of Boston (1829–1831).
Judicial career In 1814, in the midst of his political career, he was also named a judge of the court of common pleas (1814–1818), and played a leading role as delegate to the controversial
Hartford Convention in which
New England's secession from the United States was discussed. Overall, it led to the demise of the Federalists, and Otis's political ambitions suffered. Otis subsequently defended the convention in his
Letters Developing the Character and Views of the Hartford Convention (1820) and his
Letters in Defence of the Hartford Convention (1824). Otis was involved in a major financial scandal during the site selection for the
Massachusetts State House. Boston was determined to remain the state capitol, and appointed Otis to a town committee to purchase land and donate it to the state. He did so, and also quietly arranged his own private purchase of adjoining from the agent of
John Singleton Copley, then living in England. After a decade of legal arguments, the sale was upheld, and Otis and the
Mount Vernon Proprietors developed a large part of
Beacon Hill. Otis was an overseer of
Harvard University from 1810 to 1823, and a fellow of the university from 1823 to 1825, as well as one of the original incorporators of the
Boston Bank. In 1812, Otis also became a founding member of the
American Antiquarian Society. ==Personal life==