The objective of this study was to determine the effects of forest fragmentation on ant richness in a landscape of Atlantic Forest in Northeast Brazil. More specifically, the ant richness was related to the attributes of fragments (area and distance from the fragment central point to the edge), landscape (forest cover surrounding the fragments), and tree community (plant density, richness, and percentage of shade tolerant species). The surveys were carried out in 19 fragments located in Alagoas State from October 2007 to March 2008. Samples were collected through a 300 m transect established in the center of each fragment, where 30 1-m² leaf litter samples were collected at 10 m intervals. A total of 146 ant species was collected, which belonged to 42 genera, 24 tribes and nine subfamilies. The attributes of fragments and landscape did not influence ant richness. On the other hand, tree density explained ca. 23% of ant richness. In relation to functional groups, both density and richness of trees explained the richness of general myrmicines (the whole model explained ca. 42% of the variation in this group) and percentage of shade tolerant trees explained the richness of specialist predator ants (30% for the whole model). These results indicate that ant fauna is more influenced by vegetation integrity than by fragment size, distance to edge or forest cover surrounding fragments.