Fragmentary bones from Brazil reveal a new Triassic reptile close to the lineage that preceded dinosaurs and crocodiles.