During Harry's second year, Flitwick helps Professor Sinistra carry a petrified Justin Finch-Fletchley to the hospital wing. He teaches the front doors to recognise a picture of Sirius after his second break-in in "Harry Potter and the Prisoner of Azkaban", and to instantly lock down if he tries to break in. He helps patrol the perimeter of the maze for the third task of the Triwizard Tournament held in Harry's fourth year. He eventually removes most of the swamp that is created within the school by Fred and George in "Harry Potter and the Order of the Phoenix", though he previously leaves the swamp untouched to annoy Umbridge. He does however, choose to leave a small patch of it behind, because he thinks it is "a good bit of magic" and a tribute to the Weasley twins. Near the end of "Half-Blood Prince", Flitwick is sent by Professor McGonagall to ask Professor Snape to come to the aid of the Order of the Phoenix against the intruding Death Eaters. He collapses after requesting Snape's help at the battle.