Mass uprising overthrew Shah Pahlavi and established an Islamic Republic under Ayatollah Khomeini, transforming Iran into a theocracy.