Passive restoration of secondary forests can partially offset loss of biodiversity following tropical deforestation. Tree cavities, an essential resource for cavity-nesting birds, are usually associated with old forest. We investigated the restoration time for tree cavities suitable for cavity-nesting birds in secondary forest at the Biological Dynamics of Forest Fragments Project (BDFFP) in central Amazonian Brazil. We hypothesized that cavity abundance would increase with forest age, but more rapidly in areas exposed to cutting only, compared to areas where forest was cut and burned. We also hypothesized that cavities would be lower, smaller, and less variable in secondary forest than in old-growth forest, which at the BDFFP is part of a vast lowland forest with no recent history of human disturbance. We used pole-mounted cameras and tree-climbing to survey cavities in 39 plots (each 200 × 40 m) across old-growth forests and 11–34-year-old secondary forests. We used generalized linear models to examine how cavity supply was related to forest age and land-use history (cut only vs cut-and-burn), and principal components analysis to compare cavity characteristics between old-growth and secondary forest. Cavity availability increased with secondary forest age, regardless of land-use history, but the oldest secondary forest (31–34 yr) still had fewer cavities (mean ± SE = 9.8 ± 2.2 cavities ha–1) than old-growth forest (20.5 ± 4.2 cavities ha–1). Moreover, secondary forests lacked cavities that were high and deep, with large entrances—characteristics likely to be important for many species of cavity-nesting birds. Several decades may be necessary to restore cavity supply in secondary Amazonian forests, especially for the largest birds (e.g., forest-falcons and parrots > 190 g). Retention of legacy trees as forest is cleared might help maintain a supply of cavities that could allow earlier recolonization by some species of cavity-nesting birds when cleared areas are abandoned. A Portuguese version of this article is available in Supplementary Material 1.