Magnetostriction is the change in length in a given direction of a magnetic material when it is magnetised along that direction. Similarly strain in a ferromagnet can alter the direction of the magnetisation.