A permanent magnet has a constant magnetic field and does not require electricity. An electromagnet, however, needs an electric current to generate its magnetic field, and its strength can be controlled.
Home/difference between a permanent magnet and an electromagnet