Igneous rocks are called fire rocks and are formed either underground or above ground. Underground, they are formed when the melted rock, called magma, deep within the earth becomes trapped in small pockets. As these pockets of magma cool slowly underground, the magma becomes igneous rocks.
Perhaps this site would be helpful to further answer your question.
http://www.fi.edu/fellows/fellow1/oct98/create/igneous.htm