Igneous rocks are formed by the crystallisation of a magma. The difference between granites and basalts is in silica content and their rates of cooling. A basalt is about 53% sio2, whereas granite is 73%.