Quartz consists of silicon and oxygen (orange and red atoms respectively).

Each silicon is tetrahedrally coordinated to four oxygen atoms.

Each oxygen atom is bonded to two silicon atoms.

The overall structure is identical to diamond, with Si-O-Si links in place of C-C