After dispatching Umbridge in the forest, at the mercy of the centaurs, Harry and his band of reckless Gryffindors (plus an airheaded Ravenclaw and Hermione) managed to wrangle some Thestrals into doing their bidding and managed to get to the Ministry.