In fall 1820, Pierce entered Bowdoin College in Brunswick, Maine, one of 19 freshmen. He joined the Athenian Society, a progressive literary society, alongside Jonathan Cilley (later elected to Congress) and Nathaniel Hawthorne, with whom he formed lasting friendships. He was the last in his class after two years, but he worked hard to improve his grades and graduated in fifth place in 1824 in a graduating class of 14.