What causes earthquakes?

The causes of earthquakes and the different types of tectonic boundaries and faults on which they usually occur.