These rocks form when volcanoes erupt.