The rebelling towns and villages in the Alpujarra were gradually defeated. Ferdinand personally led the assault on Lanjarón.[13] Rebels who surrendered were generally required to be baptized in order to keep their lives.[1] Towns and villages which had to be taken by assault were treated harshly. One of the most violent episodes occurred in Andarax, where the Catholic forces under Louis de Beaumont took 3,000 Muslims prisoner and then slaughtered them.[12] Between two to six hundred women and children who took refuge in a local mosque were blown up with gunpowder.[14][1][12] During the capture of Velefique, all the men were killed and the women enslaved.[14] At Nijar and Güéjar Sierra, the whole population was enslaved except children who were kidnapped in order to be brought up as Christians.[15][16]