Most agates occur as nodules in volcanic rocks or ancient lavas, in former cavities produced by volatiles in the original molten mass, which were then filled, wholly or partially, by siliceous matter deposited in regular layers upon the walls. Agate has also been known to fill veins or cracks in volcanic or altered rock underlain by granitic intrusive masses. Such agates, when cut transversely, exhibit a succession of parallel lines, often of extreme tenuity, giving a banded appearance to the section. Such stones are known as banded agate, riband agate and striped agate.