A semiconductor is a substance, usually a solid chemical element or compound, that can conduct electricity under some conditions but not others, making it a good medium for the control of electrical current. ... In a semiconductor material, the flow of holes occurs in a direction opposite to the flow of electrons.