A phosphorus-containing epoxy resin has a structural unit derived from a
secondary phosphine derivative represented by the following formula:
##STR00001## wherein R.sup.1 represents an alkylene group that may have
a substituent, R.sup.2 represents a cycloalkylene or arylene group that
may have a substituent, and X represents an oxygen or sulfur atom.