The storyline goes back in time when Koyomi arrives at the Anehara School and meets Misa, who, after a series of unusual events, agrees to teach her Modern Magic.
If you do this the wrong way, you'll create more extreme fans like we just saw.