During the holy month of Ramzan, the Islamic State group is showing two faces to the millions who live under its rule in Iraq and Syria - handing out food and alms to the poor to tout their adherence to the month's spirit of compassion while meting out sharp punishment to anyone caught breaking the daily fast.
The double approach reflects the policy that the extremist group has followed ever since it overran large parts of the two countries and declared a "caliphate" in its territory last year. It has sought to build public support by providing services and acting as a functioning government, even as it imposes its strict version of Islamic law through violence.
In the Iraqi city of Mosul, the biggest city under IS rule, those who break the fast can be punished by being put in a cage in a public square for hours or for several days, said one resident, speaking on condition he be identified only by his first name, Omar, for his own security. In parts of Syria, violators are tied to a wooden cross in public, according to the Syrian Observatory for Human Rights, which monitors the situation in the country. Other residents and activists reported fast-violators being flogged.
Ramzan, which began in mid-June and ends next week, is a time when Muslims around the world seek to be closer to God, refraining from food, water, smoking and sex from dawn to sunset, offering extra prayers, reading the Quran, showing charity for the poor and cementing friendships and family ties. Usually, it's festive after sunset, with families out visiting each other or gathering at street cafes, playing backgammon, cards or smoking waterpipes.
In the IS-ruled city of Fallujah in western Iraq, residents have been told by the group's authorities not to gather at coffee shops - and anyway, smoking and games are banned. IS has also ordered men to observe a modest dress code during Ramzan, meaning no sleeveless shirts or shorts, common attire for Iraqi men to cope with the unforgiving summer heat.
"We've lost the beautiful Ramadan atmosphere we are accustomed to," said Mohammed Ahmed Jassim, a 52-year old grocer and father of three in Fallujah.
"Before, you could tell it is Ramadan in every corner in the city," he said. "Now everyone is staying put at home waiting for his fate."
Many under IS rule are also enduring higher food prices, particularly for produce and bread, in part because of fighting near the Turkish border that saw farmlands burned and because of the takeover by Kurdish fighters last month of Syria's Tal Abyad border crossing, formerly a key supply route for IS.
At the same time, the extremists have unleashed some of their most horrifying brutalities during Ramzan. In the first week of the month, the group released a video purporting to show the killing of 16 men it described as spies by drowning them in a cage lowered to the bottom of a pool, decapitating them with explosives or firing a rocket-propelled grenade at a car they were forced into.Last week, it posted a video that purports to show the killings of some two dozen Syrian army soldiers by young IS fighters with a bullet to the head inside the ruins of the ancient town of Palmyra, with an audience of several hundred people.
In this photo provided by a website of the Islamic State group, Muslims break their fast on food handed over by members of the Islamic State group during Ramzan in Palmyra (Tadmur in Arabic), Homs province, Syria. (AP Photo)
An IS call for jihad during Ramzan appears to have triggered deadly attacks in Tunisia, Kuwait, Egypt and France over the past weeks. In Syria, IS fighters infiltrated the border town of Kobani, battling Kurdish forces for two days and killing some 250 civilians, including as many as 100 children, many in their homes, according to activists.
The Islamic State group's powerful media machine has also been using Ramzan to promote itself. One carefully choreographed online video depicted what was said to be the life of its fighters on the frontline during the fast, showing them firing on enemies supposedly over the horizon, and then later sitting down for a meal of rice, chicken, dates, pickles and bread to break the fast at sunset.
The group also regularly posts online photos of its Ramzan charity. Activists in Iraq and Syria say the militants distribute Ramzan food baskets that include rice, crushed wheat, sugar and cooking oil. They also make dates, juice and mineral water available in mosques for those praying when the day's fast ends.
In Fallujah, IS militants slaughtered sheep and cows and distributed their meat to residents on the first day of Ramzan, according to residents there.
Occasionally, IS authorities organize a free "Iftar," the sunset meal, in public squares or in mosques, according to Bari Abdul-Latif, an activist from the IS-held Syrian town of al-Bab in Aleppo province. They also sell cylinders of cooking gas at one-fifth of the market price during Ramzan.
"They are planting the idea in people's minds that they are in control," said Abdul-Latif.