Islamic State barbarians are raping thousands of women in Iraq and Syria to mass-produce spawn who’ll follow in their vile footsteps, The Post has learned.

Young militants are running wild to the chagrin of their more sophisticated and p.r.-savvy commanders, an Iraqi official told The Post.

The motivation of the rapists is twofold: They want to make ISIS babies — and they are just plain out for twisted thrills.

“You have these young ISIS fighters carrying machine guns and they . . . want to have sex,” the official said.

But their commanders, who are focused on their savage war, have ordered the young fighters to keep their zippers closed.

“The ISIS commanders take a more official position,” the source said. “They don’t want them to mess around with the women. They only want them to fight.”

The young rebels, however, aren’t listening to their commanders; they claim that they’re answering to a higher calling.

“The fighters say that they’ve been ordered to have sex by a cleric in Saudi Arabia,” the Iraqi official said. “It’s really just an excuse.”

Each rapist’s goal is to impregnate multiple women and breed children within their villages and towns, he said, adding, “They want to intertwine themselves within the communities.

“They want to become part of the fabric of the cities they control so they can live on for generations.”

ISIS, which has taken over large swaths of Iraq and Syria, ultimately wants to become a caliphate, or supreme Islamic state, which would rule Muslim communities around the world.

The official insisted that ISIS is already running the cities it’s seized like a regular government.

“However psychotic and delusional they are, they have put in place their own government that offers services to the residents in these captured territories,” the official said.

“They issue passports to them. They issue license plates to them for their vehicles.

“And they also collect taxes from them, but they are doing that by putting guns to people’s heads. It’s basically extortion.”

ISIS has $2 billion at its disposal, according to the official. Most of the money is coming from the terror group’s takeover of many of Iraq’s rich oil fields.

“ISIS is turning around and selling the oil on the black market,’’ the officials said.

“That’s the primary way that they’re funding their war.”

In other developments:

Pope Francis, during his visit to Albania, called on Muslims and all religious leaders Sunday to condemn Islamic extremists who “pervert’’ religion to justify violence.

King Abdullah of Jordan, asked by “60 Minutes’’ about ISIS leader Abu Bakr al-Baghdadi, said, “I hate to use the word heretics . . . but to call himself a Muslim is to me just words that I don’t want to use on this program.”

Also on “60 Minutes,’’ former Defense Secretary Leon Panetta said he believes ISIS terrorists are a threat to America. Asked how long it will take to destroy the organization, he said, “The American people need to know it’s going to take a long time.’’

With Post wire services