A battery including: a battery case having a bottom, a side wall, and an upper opening; an electrode assembly; an electrolyte; and a sealing plate covering the upper opening of the battery case accommodating the electrode assembly and the electrolyte, the electrode assembly including a positive electrode, a negative electrode, and a separator interposed between the positive electrode and the negative electrode, a gasket is interposed between an opening-edge portion of the battery case and the sealing plate, a first resistive layer is disposed between the opening-edge portion of the battery case and the gasket, or a second resistive layer is disposed between the sealing plate and the gasket. The first or second resistive layer contains a mixture of a particulate inorganic oxide and a binder. This configuration makes it possible to prevent a short circuit between the battery case and the sealing plate even when the gasket is broken.