The 1840 Philadelphia mayoral election saw John Swift reelected to office for his eighth overall non-consecutive term.