Albus learns that Hermione is his Defense Against the Dark Arts teacher.
And she's an angry, bitter woman…maybe because she didn't marry Ron.
After sucking a bunch of points out of Gryffindor for Albus' refusal to shut up during class, she teaches the students how to deal with a Dementor sucking out their soul: conjure a Patronus.