Magnetism and matter