Sedimentary rocks transform into igneous rocks through the process of melting and cooling. When sedimentary rocks are subjected to intense heat and pressure deep within the Earth, they melt to form magma. As this magma rises to the surface or cools beneath it, it solidifies, creating igneous rocks. This geological cycle allows for the transformation of one rock type into another over vast periods.