During the 1828 . presidential election , Tammany Hall leaders met with Democratic candidate Andrew Jackson and agreed to endorse him after he promised to give them control over the allocation of some federal jobs.  After he was elected president, Jackson fulfilled his promise.  After 1829, Tammany Hall became the city affiliate of the Democratic Party, controlling most of the New York City elections afterwards.  In the 1830s the Loco-Focos , an anti-monopoly and pro-labor faction of the Democratic Party, became Tammany's main opposition by appealing to workingmen. Throughout the 1830s and 1840s, the Society expanded its political control even further by earning the loyalty of the city's ever-expanding immigrant community, which functioned as a base of political capital.