All rocks on earth are a part of a large process called the rock cycle. In this cycle, rocks are created and changed by different processes. Let's look at one possible scenario in the life of minerals that make up rocks.
Molten lava seeps into surrounding crust.
The lava hardens underground and is composed of light colored minerals. The igneous rock that is formed is granite. As the years pass, water and wind erode the crust layers covering the granite in one area. Eventually, the granite is exposed to the surface. As wind and water continue to weather the rock, small bits are carried away and deposited somewhere else.