What's pictured above, "the Grand Canyon", formed o'er eons because of such forces as wind, rain and flowing water.
Volcanic eruptions were observed numerous times in our past, expulsing lava into hundreds and thousands degrees Celsius which gradually cooled into igneous rock.
Hawaii (above pic) formed this way as an example.
Related video below:
Flora and funga, plants and mushrooms, exist at the overlap of biology and geology.