Turns out to be very simple: You can repeatedly imprison/kill a large percentage of your female population until the only women you see on the streets are swathed head to toe in black, or you can decide that forcing an entire country to share your religious fanaticism is a bad idea.