How rocks was form?

Depends on the type of rock... There is a rock cycle.