Boston mayors take an oath of office. As part of the swearing-in ceremony, the mayor takes an oath to uphold the Constitution of Massachusetts and the Constitution of the United States, and to faithfully and impartially discharge their duties, according to the city's website.