While there are a lot of parallels to conflicts in the middle east, Dune was largely inspired by the Russian empire's war against the people of the Caucuses that were united by Imam Shamyl in the 1800s. The book The Sabres of Paradise details Shamyl's life and the conflict and much of the Fremen culture is basically lifted wholesale from it.
This isn't life imitating art. It's art imitating life.
It's just that this story in real life has been going on for a long time, since well before the first Dune books were written.
While there are a lot of parallels to conflicts in the middle east, Dune was largely inspired by the Russian empire's war against the people of the Caucuses that were united by Imam Shamyl in the 1800s. The book The Sabres of Paradise details Shamyl's life and the conflict and much of the Fremen culture is basically lifted wholesale from it.