Girls can get married at age 9, should be hitched by age 16 or 17 and should lead sedentary lives as mothers, according to a manifesto published by an all-female ISIS subgroup.

The document, produced by ISIS’ female militia Al-Khanssaa Brigade, was published on a jihadist forum last month and translated into English by the London-based Quilliam Foundation, a counterterror think tank.

“It is always preferable for a woman to remain hidden and veiled, to maintain society from behind this veil,” the translation says.

Muslim women are also told to stay away from beauty salons and fashion boutiques.

The foundation said the unofficial treatise is meant to provide a more accurate description of how Muslim women are expected to behave — as opposed to accounts by Western female jihadists.

“Just as they have sexed up what it is to be a woman living in the so-called caliphate, this document dresses it down. Women, it is unambiguously stated, are homemakers and mothers,” the foundation said in its conclusion.

“The matters of adventure and excitement, themes most used by female Western recruiters trying to recruit young girls to [ISIS], are the realm of men,” it said.

It is always preferable for a woman to remain hidden and veiled, to maintain society from behind this veil. - ISIS manifesto

ISIS militants have killed thousands of people after declaring an Islamic Caliphate in large swaths of Iraq and Syria.

The manifesto says girls ages 7 to 9 should learn religion, Quranic Arabic and science. From 10 to 12, they should continue religious studies — such as learning about laws on marriage and divorce, as well as knitting and “basic cooking.”

Girls between ages 13 and 15 are told to focus on Sharia, which governs day-to-day Islamic life, and manual skills, especially related to raising children.

“It is considered legitimate for a girl to be married at the age of 9. Most pure girls will be married by 16 or 17, while they are still young and active. Young men will not be more than 20 years old in those glorious generations,” the manifesto says.

Women are told they may leave their homes only under certain conditions, including for jihad, or holy war, “if the enemy is attacking her country and the men are not enough to protect it.”

They also are free to venture out to study the “sciences of religion.” Female doctors and teachers may go out, but must stick to strict Sharia guidelines.

“It is always preferable for a woman to remain hidden and veiled, to maintain society from behind this veil,” the manifesto says. “This, which is always the most difficult role, is akin to that of a director, the most important person in a media production, who is behind the scenes organizing.”

Haras Rafiq, Quilliam Foundation’s managing director, said in a statement that speculation has been rampant on the role of women who join ISIS.

“[This translation] allows us to look past the propaganda bandied about on social media by Western supporters of [ISIS], enabling us to get into the mindset of the hundreds, perhaps thousands, of women who willingly join its ranks,” he said.