Answer: This happens at the tectonic plate boundaries like the constructive plate boundaries. These are places where the volcanoes are formed around the destructive plate boundaries. The earthquakes generally happen at the conservative plate boundaries and this is the place where earthquakes are formed.
I hope this helps:)