In 1925, Rezā Khan proclaimed himself shah of the country. As part of his Westernization program, the traditional role of the ruling clergy was minimized; Islamic schools were secularized, women were forbidden to wear the hijab, sharia law was abolished, and men and women were desegregated in educational and religious environments. All this infuriated the ultraconservative clergy as a class. Rezā Khan's son and heir Mohammad Reza Pahlavi continued such practices. They ultimately contributed to the Islamic Revolution of 1978–79, and the Shah's flight from his country.