The principle behind electromagnetic shielding is based on the creation of a barrier that absorbs or reflects the electromagnetic waves. When these waves encounter a conductive material, the free electrons in the material move to counteract the incoming field, thus canceling it out. Magnetic materials can also be used to divert the magnetic component of the electromagnetic waves.