In the Islamic Republic of Iran, Ayatollah Khomeini severely curtailed rights that women had become accustomed to under the shah. Within months of the founding of the Islamic Republic of Iran, the 1967 Family Protection Law was repealed; female government workers were forced to observe Islamic dress code; women were barred from becoming judges; beaches and sports were sex-segregated; the legal age of marriage for girls was reduced to 9 (later raised to 13); and married women were barred from attending regular schools.