Sometimes rocks have lines in them. 
Sometimes rocks have lines inside them. 
Water carries these bits into cracks. The bits stay there and grow. This can fill up empty spaces. 
Sometimes a crack opens and closes. This adds many thin layers. The vein grows thicker over time.
Veins can hold special things. Some veins hold gold! 
Veins help us learn about the Earth. They show how rocks move.
Rocks often have colorful lines inside them. 
There are two main ways this happens. The first way is open-space filling. This happens when minerals fill up an empty hole. 
The second way is called crack-seal growth. This happens when a rock cracks. Minerals fill the tiny crack. Then the rock cracks again in the same spot. This adds a new layer of crystals. Many small cracks can make a very thick vein.
Veins are very helpful to scientists. They show how rocks move and feel pressure. They also show how hot or cold the area was. Some veins are very special because they hold gold. 
Have you ever looked closely at a rock and seen a bright stripe running through it? 

Veins form through a special way it works involving water and minerals. First, a liquid solution carries tiny bits of minerals through the rock. This liquid usually moves because of hot water circulating deep underground. This is called hydrothermal circulation. When the liquid reaches a crack, the minerals settle out. This settling is called precipitation. The minerals then grow into solid crystals within the rock mass.
There are two main ways these crystals grow. The first way is called open-space filling. This happens when minerals fill up a large, empty hole. This can create shapes like geodes or agate-like patterns. The second way is called crack-seal growth. In this way, a rock cracks and minerals fill the tiny space. Then the rock cracks again in the same spot. Many small cracks can build up to make a very thick vein.
Scientists use math to understand how these cracks form. They use something called the Mohr-Griffith-Coulomb fracture criterion. This helps them predict how much pressure is needed to break a rock. They also look at different types of breaks. These include shear fractures, extensional fractures, and hybrid fractures. By measuring many veins, scientists can see how the Earth was being squeezed or pulled. 
Veins are often very exciting for people who look for treasure. Many veins contain gold, which is a precious metal. 

In geology, a vein is a distinct, sheetlike body of crystallized minerals found within a rock. 
The formation of a vein begins with an aqueous solution. This is a liquid that carries various mineral constituents through a rock mass. This movement is usually driven by hydrothermal circulation, which is the flow of hot water through the crust. As these fluids move, they undergo precipitation. This means the dissolved minerals settle out of the liquid and become solid. These minerals then grow into crystals within the spaces available in the rock. 
Geologists recognize two primary mechanisms for how these crystals occupy space. The first is known as open-space filling. This process is a hallmark of epithermal vein systems, such as a stockwork. For this to occur, the confining pressure must generally be below 0.5 GPa. In these environments, minerals may grow in a colloform or agate-like habit. They radiate from nucleation points on the walls to fill the void. This process can create features like vugs, cavities, or geodes. 
The second mechanism is called crack-seal growth. This occurs when a rock is repeatedly fractured and then filled with new crystal growth. This process happens very quickly by geologic standards. The spaces involved are often tiny, measuring only millimeters or micrometers. Each individual cycle might only add a very thin layer. However, repeated fractures along the same interface allow the vein to reach a considerable thickness. The vein grows by reopening the fracture and depositing more minerals on the surface.
On a larger scale, the way rocks break is governed by fracture mechanics. Scientists classify these failures into three main modes: shear fractures, extensional fractures, and hybrid fractures. To predict these breaks, they use the Mohr-Griffith-Coulomb fracture criterion. This mathematical rule defines the stress required to break a rock and the direction of the crack. Using a Mohr diagram, scientists can see when a rock reaches a critical state of stress. Once a fracture forms, the stress in the rock drops. If stress increases again, a new crack often forms along that same plane.
Veins are also essential tools for the mining industry. Many famous gold lodes are formed through these hydrothermal processes. 

Because of this, veins act as indicators for even larger mineral deposits. They can show evidence of metasomatism, which is the chemical change of the surrounding wall rocks. 
🖼️ Images & Media (5)
More to explore
✨ What else?
Related topics you might enjoy
🪜 Step back
Simpler topics to build understanding
What is Nepedia?
A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.