Cladistically, it is defined as Crocodylus niloticus (the Nile crocodile) and all crocodylians more closely related to C. niloticus than to either Alligator mississippiensis (the American alligator) or Gavialis gangeticus (the gharial).[5] This is a stem-based definition for crocodiles, and is more inclusive than the crown groupCrocodylidae.[3] As a crown group, Crocodylidae only includes the last common ancestor of all extant (living) crocodiles and their descendants (living or extinct), whereas Crocodyloidea, as a stem group, also includes more basal extinct crocodile ancestors that are more closely related to living crocodiles than to alligators or gavialids. When considering only living taxa (neontology), this makes Crocodyloidea and Crocodylidae synonymous, and only Crocodylidae is used. Thus, Crocodyloidea is only used in the context of paleontology.
Traditionally, crocodiles and alligators were considered more closely related and grouped together in the clade Brevirostres, to the exclusion of the gharials. This classification was based on morphological studies primarily focused on analyzing skeletal traits of living and extinct fossil species.[6] However, recent molecular studies using DNA sequencing have rejected Brevirostres upon finding the crocodiles and gavialids to be more closely related than the alligators.[7][8][9][3][4] The new clade Longirostres was named by Harshman et al. in 2003.[7]