The resin composition of the present invention contains an epoxy compound and a curing agent. The epoxy compound described above includes a phosphorus-containing epoxy compound having a phosphorus atom in the molecule. The said curing agent contains phosphoric anhydride containing a phosphorus atom and an acid anhydride group in a molecule|numerator.