}}
Castorocauda is a member of the
order Docodonta, an extinct group of
mammaliaforms. Mammaliaformes includes mammal-like creatures and the
crown mammals (all descendants, living or extinct, of the last common ancestor of all living mammals). Docodonts are not crown mammals. When
Castorocauda was first
described in 2006, it was thought to be most closely related to the European
Krusatodon and
Simpsonodon. Simpsonodontidae is now considered to be
paraphyletic and thus invalid, and
Castorocauda appears to have been most closely related to
Dsungarodon,
Castorocauda is part of a Middle Jurassic mammaliaform diversification event, wherein mammaliaforms
radiated into a wide array of
niches and evolved several modern traits, such as more modern mammalian teeth and
middle ear bones. and evidence for an explosive diversification in the Middle Jurassic – such as the appearance of
eutriconodontans,
multituberculates,
australosphenidans,
metatherians and
eutherians, among others – disproves this notion. This may have been caused by the breakup of
Pangaea, which started in the
Early to Middle Jurassic and diversified habitats and niches, or modern traits that had been slowly accumulating since mammaliaforms evolved until reaching a critical point which allowed for a massive expansion into different habitats. ==Paleoecology==