How do minerals form from solution?
Solutions are substances with stuff dissolved in liquids, like how salt is dissolved in water. Once water evaporates due to high temperature, the salt will be left behind.
And this is what happens to other minerals. They're dissolved in solutions such as water. And once the water dries up, they get left behind.