Dinosaurs were land-dwelling reptiles that walked erect on two legs or four legs depending on the group. They had defensive weapons like horns, claws and spikes and behaviors like headbutting. Some dinosaurs lived in herds or packs as evidenced by fossil bonebeds, trackways and nesting sites. It is widely accepted that dinosaurs died out after a large comet hit Earth around 66 million years ago, creating debris that blocked the sun and cooled the climate so dinosaurs could no longer survive.