Sedimentary rock forms from the layering of eroded rock material, which accumulates and undergoes compaction and cementation over time. Examples of sedimentary rocks include sandstone, shale, and limestone.
The feature common to nearly every type of sedimentary rock is layering, known as stratification, which is formed by the accumulation and compaction of sediments over time. This layering provides information about the environment in which the rock was formed.
Siltstone can be formed from the eroded and transported particles of any rock type.
Any type of rock, igneous, metamorphic or sedimentary, can become eroded and re-deposited and cemented together to become a new sedimentary rock.
Mudstone is a type of sedimentary rock that forms from the compaction and cementation of mud or clay particles. It has a fine-grained texture and is typically composed of silt and clay-sized particles. Mudstone is commonly found in marine environments and is a relatively soft and easily eroded rock.
Sedimentary rock.
Igneous Rock comes from molten rock.
Igneous rock
That would be sedimentary rock, and (honorable mention) occasionally metamorphic rock.
When magma is forced up into layers of rock and hardens between them, it forms a type of igneous rock called a sill. Sills are parallel to the layering of the preexisting rock and are typically thin, horizontal intrusions. Over time, sills can be exposed at the surface through erosion and weathering processes.
Igneous
Shale