Aftershocks occur after the most major part of an earth quake happens. Earthquakes occur at fault lines near the tectonic border. They occur because of the sudden movement for staying rigid while they were edging closer and closer. So the sudden movement releases a large amount of tension buried deep below the earth creating or resulting in an earthquake.