In Harry Potter and the Prisoner of Azkaban, the spell that defines Harry's third year—and his magical identity—is the Patronus Charm (Expecto Patronum).
Remus Lupin teaches Harry privately, using a Boggart as a practice Dementor. The lessons are grueling—Harry fails repeatedly, confronting his worst fears (his parents' deaths, the Dementors themselves) before finally producing a full, silvery stag that drives the Boggart away.
The Patronus Charm doesn't just save Harry from Dementors—it announces that he's no longer just a student. He's a wizard who can conjure hope from darkness.