The atoms inside materials are not always perfectly ordered, as usually depicted in models. In magnetic, ferroelectric (or showing electric polarity) and alloy materials, there is competition between random arrangement of the atoms and their desire to align in a perfect pattern. The change between these two states, called a phase transition, happens at a specific temperature.