He was elected as mayor in 1843 because of his Jacksonian Democrat political philosophy. Hayward was not re-elected because the city's political views shifted to partisan Whig and Republican.
Hayward became mayor in 1843 thanks to his strong support for Jacksonian Democrat principles. However, he lost his re-election bid as the city's politics began to favor the Whig and Republican parties.