How can we make such an enormous span of time more understandable? Think of 5 billion years as if it were one calendar year. Start with the origin of the Earth on January 1. Through winter, spring, and most of summer, the Earth's crust is taking shape and its oceans and atmosphere are forming. It is a hostile and lifeless world.
The first microscopic forms of life might appear in July. More complex plants and animals do not become common until November 20. The first dinosaurs appear about December 15. By early morning on December 27, the last one has died. This leaves the stage clear for mammals to take the leading roles.
Our own species, Homo sapiens, only appears at 11:15 pm on December 31. Humans are the relative newcomers. Our recorded history only accounts for the last half-minute of the year!