How are volcanoes and earthquakes alike?

Volcanoes and Earthquakes are alike because both of them are on fault lines and sometimes there are volcanoes after earthquakes and earthquakes after volcanoes and they both sometimes even have tsunami's after them.