Then over millions of years the sinking areas filled up with sediment forming a thick basin of compressed decaying plant matter. As this basin compressed, the heat building up underneath eventually caused the rock that made up the earth’s crust to melt and turn to magma.
Around 400 million years ago the magma rose up towards the surface of the earth but never quite made it, instead cooling underneath the surface. After another massive change in plate tectonics, more erosion occurred allowing the harder rocky granite from deep below to form the mountain and plateau ranges that exist today.