In some places, girls over 12 were barred from school while women were told to stay at home.