Alleged Taliban fighters and other militants stand handcuffed while being presented to the media at a police headquarters in Jalalabad on March 6, 2018. 
Afghan police said over 17 alleged Taliban militants including two Pakistani nationals were arrested during a five-week operation in Nangarhar province. / AFP PHOTO / NOORULLAH SHIRZADA        (Photo credit should read NOORULLAH SHIRZADA/AFP/Getty Images)
PHOTO: NOORULLAH SHIRZADA/AFP/AFP/Getty Images
Alleged Taliban fighters and other militants stand handcuffed while being presented to the media at a police headquarters in Jalalabad on March 6, 2018. Afghan police said over 17 alleged Taliban militants including two Pakistani nationals were arrested during a five-week operation in Nangarhar province. / AFP PHOTO / NOORULLAH SHIRZADA (Photo credit should read NOORULLAH SHIRZADA/AFP/Getty Images)
Now playing
01:21
The Taliban: How it began, and what it wants
Screengrab from video published on Youtube by Taliban media on Dec 19, 2016, showing  American hostage Caitlan Coleman and her husband Canadian Joshua Boyle with their two children.
PHOTO: From Youtube
Screengrab from video published on Youtube by Taliban media on Dec 19, 2016, showing American hostage Caitlan Coleman and her husband Canadian Joshua Boyle with their two children.
Now playing
00:51
Freed Taliban hostage facing charges in Canada
An Afghan security force member stands at the site of a car bomb attack in Kabul on May 31, 2017.
At least 40 people were killed or wounded on May 31 as a massive blast ripped through Kabul's diplomatic quarter, shattering the morning rush hour and bringing carnage to the streets of the Afghan capital. / AFP PHOTO / SHAH MARAI        (Photo credit should read SHAH MARAI/AFP/Getty Images)
PHOTO: SHAH MARAI/AFP/AFP/Getty Images
An Afghan security force member stands at the site of a car bomb attack in Kabul on May 31, 2017. At least 40 people were killed or wounded on May 31 as a massive blast ripped through Kabul's diplomatic quarter, shattering the morning rush hour and bringing carnage to the streets of the Afghan capital. / AFP PHOTO / SHAH MARAI (Photo credit should read SHAH MARAI/AFP/Getty Images)
Now playing
01:48
What is going on in Afghanistan?
A wounded man is assisted at the site of an explosion in downtown Kabul, Afghanistan, Saturday, Jan. 27, 2018. The Interior Ministry says a suicide car bomb attack in Kabul has left dozens wounded. (AP Photo/Massoud Hossaini)
PHOTO: Massoud Hossaini/AP
A wounded man is assisted at the site of an explosion in downtown Kabul, Afghanistan, Saturday, Jan. 27, 2018. The Interior Ministry says a suicide car bomb attack in Kabul has left dozens wounded. (AP Photo/Massoud Hossaini)
Now playing
01:54
Ambulance packed with explosives kills dozens
Smokes rises from the Intercontinental Hotel after an attack in Kabul, Afghanistan, Sunday, Jan. 21, 2018. Gunmen stormed the hotel in the Afghan capital on Saturday evening, triggering a shootout with security forces, officials said. (AP Photo/Rahmat Gul)
PHOTO: Rahmat Gul/AP
Smokes rises from the Intercontinental Hotel after an attack in Kabul, Afghanistan, Sunday, Jan. 21, 2018. Gunmen stormed the hotel in the Afghan capital on Saturday evening, triggering a shootout with security forces, officials said. (AP Photo/Rahmat Gul)
Now playing
01:56
Taliban claim responsibility for hotel attack
canadian family freed parents speak paula newton _00011721.jpg
canadian family freed parents speak paula newton _00011721.jpg
Now playing
02:36
Parents of freed Canadian hostages speak
Now playing
01:03
Trump: Rescue a sign world respects US again
taliban releases couple
PHOTO: CNN
taliban releases couple
Now playing
02:03
Taliban releases video of abducted family (2016)
paton walsh who are the taliban orig_00005127.jpg
paton walsh who are the taliban orig_00005127.jpg
Now playing
01:35
Who are the Taliban in 2016?
kunduz taliban launch attack watson_00010507.jpg
PHOTO: Reuters
kunduz taliban launch attack watson_00010507.jpg
Now playing
01:38
Afghan forces battle Taliban for control of Kunduz
Afghan men stone a woman in a hole to death in Ghalmeen, Afghanistan.
PHOTO: RADIO FREE EUROPE/RADIO LIBERTY/AFP/Getty Images
Afghan men stone a woman in a hole to death in Ghalmeen, Afghanistan.
Now playing
00:55
Woman stoned for adultery
PHOTO: Getty Images
Now playing
01:26
First female Afghan AF pilot seeks asylum
Caption:Pakistani education activist Malala Yousafzai gives a press conference on July 14, 2014 after meeting with the Nigerian president in Abuja. Malala on July 14 urged Nigerian President Goodluck Jonathan to meet with parents of the schoolgirls kidnapped three months ago by Boko Haram. Malala, who survived a Taliban assassination attempt in 2012 and has become a champion for access to schooling, was in Abuja on her 17th birthday to mark the somber anniversary of Boko Haram's April 14 abduction of 276 girls from a secondary school in the northeast Nigerian city of Chibok. AFP PHOTO / WOLE EMMANUEL (Photo credit should read WOLE EMMANUEL/AFP/Getty Images)
PHOTO: Wole Emmanuel/AFP/Getty Images
Caption:Pakistani education activist Malala Yousafzai gives a press conference on July 14, 2014 after meeting with the Nigerian president in Abuja. Malala on July 14 urged Nigerian President Goodluck Jonathan to meet with parents of the schoolgirls kidnapped three months ago by Boko Haram. Malala, who survived a Taliban assassination attempt in 2012 and has become a champion for access to schooling, was in Abuja on her 17th birthday to mark the somber anniversary of Boko Haram's April 14 abduction of 276 girls from a secondary school in the northeast Nigerian city of Chibok. AFP PHOTO / WOLE EMMANUEL (Photo credit should read WOLE EMMANUEL/AFP/Getty Images)
Now playing
01:18
Pakistan sentences 10 for Malala attack
afghan tv station threatened by taliban walsh pkg_00004921.jpg
afghan tv station threatened by taliban walsh pkg_00004921.jpg
Now playing
02:47
Afhanistan's TOLO TV defies the Taliban
A burnt-out police pick-up truck stands in the street after Afghan security forces retook control of Kunduz city from the Taliban militants in northeastern Kunduz province, on October 1, 2015.  Afghan forces retook control of the strategic northern city of Kunduz on October 1 after a three-day Taliban occupation that dealt a stinging blow to the country's NATO-trained military.    AFP PHOTO        (Photo credit should read STR/AFP/Getty Images)
PHOTO: STR/AFP/AFP/Getty Images
A burnt-out police pick-up truck stands in the street after Afghan security forces retook control of Kunduz city from the Taliban militants in northeastern Kunduz province, on October 1, 2015. Afghan forces retook control of the strategic northern city of Kunduz on October 1 after a three-day Taliban occupation that dealt a stinging blow to the country's NATO-trained military. AFP PHOTO (Photo credit should read STR/AFP/Getty Images)
Now playing
01:31
The state of the Taliban in Afghanistan
(CNN) —  

Afghanistan’s President has announced a temporary ceasefire with the Taliban during Muslim festival Eid al-Fitr later this month.

In a video message Thursday, Ashraf Ghani said that all Afghan security forces would be instructed to stop offensive operations on Afghan insurgents between June 12 and June 21, the period this year in which Muslims celebrate the end of Ramadan, the Islamic holy month of fasting.

“ISIS, Al Qaida and other international terrorist networks are excluded from this ceasefire,” Ghani said, adding that details of the ceasefire would be made public next week.

“This ceasefire is an opportunity for Taliban to introspect that their violent campaign is not winning them hearts and minds, but further alienating the #Afghan people from their cause,” Ghani added on Twitter.

Secretary of State Mike Pompeo welcomed the announcement, saying it demonstrated the Afghan government’s commitment to peace and would give the Afghan people a chance to celebrate the holiday in peace.

US will respect the ceasefire

“In support of the Afghan government’s initiative, NATO’s Resolute Support Mission and US forces in Afghanistan will respect the ceasefire, as it applies to the Taliban,” Pompeo said in a statement Thursday. “It does not apply to ISIS and al-Qa’ida, nor does it prohibit operations to defend Afghan and Coalition forces from attack.”

In a statement, General John Nicholson, commander of US and international forces in Afghanistan, described the ceasefire as “another bold initiative for peace” and said US forces would honor it.

The Taliban has not yet commented.

Pakistan, which exerts strong influence on Afghanistan’s Taliban, was apparently heavily engaged prior to this announcement, according to US officials. Pompeo spoke Wednesday night with Pakistani Chief of Army Staff Qamar Bajwa, according to the State Department.

US officials say that through Pakistani back channels and other mechanisms, the Taliban had expressed interest in the pause in hostilities.

“I think the fact that the Taliban have not yet rejected the offer…indicates they may be prepared to entertain” it, a senior State Department official told reporters Thursday. “We will have to wait and see how they respond.”

A US defense official said the Haqqani network, an offshoot of the Taliban that is based in Pakistan, will not be targeted if it abides by the ceasefire.

The 10-day temporary ceasefire comes at a time when there aren’t likely to be many military operations because of the Muslim holiday.

The decision came after a group of Islamic clerics from across the country met this week and recommended a ceasefire, according to Reuters.

But not all members of Ghani’s government are on board. “From a military prospect, it is not a good move,” former army general Atiqullah Amarkhel told Reuters. “It will give the enemy the opportunity to prepare itself for more attacks.”

He also said he doubted that the Taliban would adhere to the ceasefire.

Rumors of peace talks

Thursday’s announcement comes after an uptick in violence in Afghanistan, despite reports in March that suggested some factions of the Taliban had expressed interest in pursuing peace talks with the Afghan government.

Fourteen people including a district governor were killed in a Taliban attack in Afghanistan’s southeastern Ghazni province on April 12. At least another 14 were killed after an explosion at a mosque in eastern Afghanistan on May 6, but the Taliban denied involvement.

Ghani first spoke about the possibility of a ceasefire with the militant Islamist group in February, when he announced that the Afghan government was willing to recognize the Taliban as a legitimate political party as part of a potential agreement.

“We’re ready to restart talks about peace with Pakistan again and forget bitter experiences of the past and start a new chapter,” he said.

11:56 - Source: CNN
Afghan Pres. says 'every war' must end politically

Taliban strengthens its hold

The Taliban has been waging a bitter fight in Afghanistan with the ultimate goal of ruling the country and imposing its strict interpretation of Islamic law. The group controlled Afghanistan until 2001, when it was overthrown by the US-led coalition that invaded the country following the 9/11 attacks.

In recent years, a resurgent Taliban has taken control of significant swaths of the country and terrorized citizens and foreigners alike. Brazen terror attacks have even shaken the resolve of those who live in the heavily secured capital, Kabul, and raised questions over the Afghan government’s ability to protect the country.

A report by the US inspector general last month showed that the number of Afghan security personnel, who are tasked with defending the war-ravaged country from a continuing insurgency, has dropped by 10% in a year, a strong indication that a multi-billion dollar training program funded by the US is failing.

US military data released to CNN in January indicated that the Taliban strengthened its hold over the country in the second half of 2017, with 14% of Afghan districts under the control or influence of the Taliban or other insurgents. In November 2015, insurgents influenced just 7% of the country.

Ehsan Popalzai reported from Kabul and Judith Vonberg wrote from London. CNN’s Barbara Starr, Sheena McKenzie, Ryan Browne and Laura Koran and Nick Paton Walsh contributed to this story.