There is today a rough alliance between the jihadists and the marxist. Both are allied on the destruction of the west. The distinction is that the jihadists want to replace the western governments with the caliphate and the marxists want to replace western government with a marxist one party state—with something like a pharaoh to lead them. Both involve one free man at the top of the pyramid and the rest slaves.
Essentially. If you look at the founding documents of many Arab terror groups they reference their place in international socialism.