All substances are made of minute particles. In a magnetic substance whether magnetized or non-magnetized), each individual particle behaves like an independent magnet. In the unmagnetized state, these particles within the substance are present in a random fashion such that they cancel out the magnetic effects of each other. In a magnetized state, these particles align in a particle direction and the substance behaves like a magnet.