What is the sociocultural context in which Edgar Allan Poe's poem The Bells was written?

It is believed that Edgar Allan Poe wrote 'The Bells' in 1848. This is around the time the poet lived in Fordham near the Fordham University bell tower. Poe was known to stroll around the campus.