Draco had let the Death Eaters into the castle through a Vanishing Cabinet that he had secretly repaired in the Room of Requirement, disarming Dumbledore on top of the Astronomy tower and making it easy for Snape to kill their headmaster.