Magnet near compass

Exploring the effect of a permanent magnet on compass. What is going on?

License: CC BY-NC-SA by Khan Academy