Throughout history, women in Iran have played numerous roles, and contributed in many ways, to Iranian society. Historically, tradition maintained that women be confined to their homes to manage the household and raise children.[citation needed] During the Pahlavi era, there was a drastic social change towards women's desegregation such as ban of the veil, right to vote, right to education, equal salaries for men and women, and the right to hold public office. Women were active participants in the Islamic Revolution. Iran's constitution, adopted after the Islamic Revolution in 1979, proclaims equality for men and women under Article 20,[3] while mandating legal code adhering to Sharia law. Article 21 of the constitution as well as a few parliament-passed laws give women rights such as being allowed to drive, hold public office, and attend university but not wearing a veil in public can be punished by law;[4] and when in public, all hair and skin except the face and hands must be covered.[5] However, this is often not enforced; notably in recent years, Iranian women have started a number of groups to rebel against the government's oppressive policies and reclaim their independence and rights.[6]