Magnetic force attracts a fridge magnet to the metal door of a refrigerator. The way a material responds to a magnetic field is determined by the structure and arrangement of fundamental particles known as electrons and atoms. Ferromagnetic materials are those that are attracted by a magnet.