Hey! :)
Magnetism is a type of attractive or repulsive force that acts up to certain distance. The distance up to which this attractive or repulsive force acts is called a "magnetic field". Magnetism is caused by the moving electric charges (especially electrons). When two magnetic materials are placed close to each other, they experience an attractive or repulsive force.
Hope this helps! :)