Johann Heinrich Bartels (20 May 1761 – 1 February 1850) was a scholar from Hamburg who became a city senator in 1798. He played a leading role in civic administration during the difficult years of French occupation (1806-1814). In 1820 he was elected Mayor of the city, a position which he occupied for a remarkable three decades.