Igneous rocks and Sedimentary rocks both are both created under very hot temperature.
Igneous rocks are formed by the cooling of magma(molten rock) inside the Earth or on the surface while Sedimentary rocks are formed from the products of weathering by cementation or precipitation on the Earth's surface.