A micro gas generator with an automatic ignition function operated before being weakened by heat without impairing the cleanliness of exhaust gas, comprising gas generating agent, a cup body for filling the gas generating agent therein, and a holder formed integrally with squibs and fixedly sealing the squibs in the cup body, wherein an automatic igniting agent layer is put on the inner surface of the cup body.