A magnet is defined as an object which is capable of producing a magnetic field and attracting unlike poles and repelling like poles.
Properties of magnet:
When a magnet is dipped in iron filings, we can observe that the iron filings cling to the end of the magnet as the attraction is maximum at the ends of the magnet. These ends are known as the poles of the magnets.
Magnetic poles always exist in pairs.
The magnetic force between the two magnets is greater when the distance between these magnets is lesser.
Like poles repel while unlike poles attract.
When two magnetic poles are bought close to each other, the magnetic lines of force are in opposite directions to each other and as a result, they repel each other.