maxcy later became a democrat and supported andrew jackson for president in 1824 and 1828. when jackson won the 1828 election, maxcy's friend john c. calhoun attempted to have him appointed as treasurer of the united states, but jackson and secretary of the treasury samuel d. ingham decided for political reasons to offer the position to john campbell. instead, maxcy received appointment as solicitor of the treasury, where he served from 1830 to 1837.