Archaeopteryx was principally arboreal on the basis of the curvature of the claws which has since been questioned. The absence of trees does not preclude "Archaeopteryx" from an arboreal lifestyle, as several species of bird live exclusively in low shrubs. Various aspects of the morphology of "Archaeopteryx" point to either an arboreal or ground existence, including the length of its legs and the elongation in its feet; some authorities consider it likely to have been a generalist capable of feeding in both shrubs and open ground, as well as along the shores of the lagoon. It most likely hunted small prey,
Archaeopteryx be related particularly closely to "Anchiornis" and "Xiaotingia", which were recovered as basal troodontids instead. Agnolín and Novas (2013) found "Archaeopteryx" and (possibly synonymous) "Wellnhoferia" to be the basalmost avialans (Avialae being defined by the authors as including "Archaeopteryx lithographica" and "Passer", their most recent common ancestor and all of its descendants), with Microraptoria, Unenlagiinae, and the clade containing "Anchiornis" and "Xiaotingia" being successively closer outgroups to the Avialae. Another phylogenetic study by Godefroit, "et al.", using a more inclusive matrix than the one from the analysis in the description of "Eosinopteryx brevipenna", also found "Archaeopteryx" to be a member