Minecraft wiki entry for Granite, associated text: Granite rock comes from underground magma pockets that turned cold. It's often pinkish in color because of its alkali feldspar minerals.
Diorite is another magma-pocket rock, but it has less quartz in it. Adding Nether quartz to diorite yields granite blocks.