The garrison rushed to occupy the town's defenses; Mahdist riflemen took positions in the trenches in front of the town, melee infantry stationed themselves inside houses and throughout the streets, and a small band of cavalry stood by, ready to act. All told, the defense numbered between four hundred and one thousand soldiers.[30][31]