An epoxy resin composition is provided, which includes (A) an epoxy resin
with at least 2 epoxy groups within each molecule, (B) a curing agent,
and (C) a foaming agent. This composition displays excellent flame
retardancy and reliability and is suitable for use as a semiconductor
encapsulating material.