Intrusive igneous rock forms when magma pushes into surrounding rock below the surface of the Earth. Examples of intrusive igneous rocks are granite and diorite.
Clastic sedimentary rocks form when sediments get buried, compacted, and cemented together by Quartz or calcite. Examples of clastic rocks are mudstone, siltstone, and shale.