A gas generator includes a cup where a gas generating agent is accommodated and a holder. The holder includes a first recessed portion and an annular groove provided in an end surface on a side facing the cup, a second recessed portion provided in an end surface on an opposite side, and a partition…