This work summarizes my results related to two types of seismic activity, which appear to have a common generation mechanism. The first one are earthquake swarms, the second is the seismicity induced by fluid injection in boreholes.