Epiphytes are conspicuous structural elements of tropical forest canopies. Individual tree crowns in lowland forests may support more than 30 ant species, yet we know little about the effects of epiphytes on ant diversity. We examined the composition of arboreal ant communities on Annona glabra trees and their interactions with the epiphytic orchid Caularthron bilamellatum in Panama. We surveyed the ants on 73 trees (45 with C. bilamellatum and 28 lacking epiphytes) and recorded their nest sites and behavioral dominance at baits. We found a total of 49 ant species (in 20 genera), ranging 1–9 species per tree. Trees with C. bilamellatum had higher average (±SD) ant species richness (4.2±2.28) than trees without epiphytes (2.7±1.21). Hollow pseudobulbs (PBs) of C. bilamellatum were used as nest sites by 32 ant species, but only 43 percent of suitable PBs were occupied. Ant species richness increased with PB abundance in trees, but nest sites did not appear to be a limiting resource on A. glabra. We detected no close association between ants and the orchid. We conclude that higher ant species richness in the presence of the orchid is due to bottom‐up effects, especially the year‐round supply of extrafloral nectar. The structure of ant communities on A. glabra partly reflects interference competition among behaviorally dominant species and stochastic factors, as observed in other forests.