This application includes a wide theoretical framework were is explained how to do the classification of igneous rocks and in which cases can be applied the Streckeisen diagram. Also, is explained briefly how to use the TAS diagram, a diagram that represent the content of the rock of alkalis in front of silica.