The biggest tragedy is that it isn’t centuries. It isn’t even century. There are people alive in Afghanistan that can remember women attending the universities in Kabul in mini skirts.
Then in the mid 70s a communist party was elected and tried to basically de-islamify things (while also doing commie things) and part of the country lost its shit. The Soviets came in to help the commies, we took the only other side, which was the Islamic fanatical guerrilas. We’re probably still getting shot at by guns we gave them.
Same with Iran pre-1979.