The Islamic State group erupted from the chaos of Syria and Iraq's conflicts and swiftly did what no Islamic militant group had done before, conquering a giant stretch of territory and declaring itself a "caliphate.''
Its territorial rule, which at its height in 2014 stretched across nearly a third of both Syria and Iraq, ended with a last stand by several hundred of its militants at a tiny Syrian village on the banks of the Euphrates near the border with Syria.
Here are the key moments in the rise and fall of the Islamic State group:
April 2013 _ Abu Bakr al-Baghdadi, the leader of al-Qaeda's branch in Iraq, announces the merger of his group with al-Qaeda's franchise in Syria, forming the Islamic State in Iraq and the Levant and expanding his reach into neighboring Syria.
January _ Al-Baghdadi's forces overrun the city of Fallujah in Iraq's western Anbar province and parts of the nearby provincial capital of Ramadi. In Syria, they seize sole control of the city of Raqqa after driving out rival Syrian rebel factions, and it becomes their de facto capital.
February _ Al-Qaeda leader Ayman al-Zawahri disavows al-Baghdadi after the Iraqi militant ignores his demands that IS leave Syria.
June _ IS captures Mosul, Iraqi's second-largest city, and pushes south as Iraqi forces crumble, eventually capturing Saddam Hussein's hometown of Tikrit and reaching the outskirts of Baghdad. When they threaten Shia holy sites, Iraq's top Shia cleric issues a call to arms, and masses of volunteers, largely backed and armed by Iran, join militias.
June 29 _ The group renames itself the Islamic State and declares the establishment of a self-styled "caliphate,'' a traditional model of Islamic rule, in its territories in Iraq and Syria. Al-Baghdadi is declared the caliph.
July 4 _ Al-Baghdadi makes his first public appearance, delivering a Friday sermon in Mosul's historic al-Nuri Mosque. He urges Muslims around the world to swear allegiance to the caliphate and obey him as its leader.
August _ IS captures the town of Sinjar west of Mosul and begins a systematic slaughter of the tiny Yazidi religious community. Women and girls are kidnapped as sex slaves; hundreds remain missing to this day.
Aug. 8 _ The U.S. launches its campaign of airstrikes against IS in Iraq.
Sept. 22 - The U.S.-led coalition begins an aerial campaign against IS in Syria.
January _ Iraqi Kurdish fighters, backed by U.S.-led airstrikes, drive IS out of several towns north of Mosul. In Syria, Kurdish fighters backed by U.S. airstrikes repel an IS onslaught on the town of Kobani on the border with Turkey, the first significant defeat for IS.
April 1 _ U.S.-backed Iraqi forces retake Tikrit, their first major victory against IS.
May 20 _ IS captures the ancient Syrian town of Palmyra, where the extremists later destroy archaeological treasures.
Feb. 9 _ Iraqi forces recapture Ramadi after months of fighting and at enormous cost, with thousands of buildings destroyed. Almost the entire population fled the city.
June 26 _ Fallujah is declared liberated by Iraqi forces after a five-week battle.
July 3 _ IS sets off a gigantic suicide truck bomb outside a Baghdad shopping mall, killing almost 300 people, the deadliest attack in Iraq since the 2003 U.S.-led invasion.
Oct. 17 _ Iraqi Prime Minister Haider al-Abadi announces the start of the operation to liberate Mosul.
Oct. 21 _ IS militants and sleeper cells stage a wave of attacks with suicide blasts in the central Iraqi city of Kirkuk, killing at least 80 people in an attempt to divert attention from Mosul.
Nov. 5 _ The U.S.-backed, Kurdish-led Syrian Democratic Forces launch Operation Euphrates Wrath, the first of five operations aiming to retake Raqqa, starting with an encircling of the city.
Jan. 24 _ Al-Abadi announces eastern Mosul has been 'fully liberated.''
Feb. 19 _ Iraqi forces begin the assault on western Mosul, taking the city's airport and nearby military base within four days.
May 10 _ SDF captures the strategic Tabqa dam after weeks of battles and a major airlift operation that brought SDF fighters and their U.S. advisers to the area. The fall of the dam facilitated the push on Raqqa, about 40 kilometers (25 miles) away.
June 6 _ SDF fighters begin an attack on Raqqa from three sides, backed by U.S.-led coalition airstrikes.
June 18 _ Iraqi forces launch battle for Mosul's Old City, the last IS stronghold there.
June 21 _ IS destroys Mosul's iconic al-Nuri Mosque and its 12th century leaning minaret as Iraqi forces close in, according to Iraqi and coalition officials.
July 10 _ Iraqi prime minister declares victory over IS in Mosul and end of the extremists' caliphate in Iraq.
Oct. 17 _ SDF takes full control of Raqqa after months of heavy bombardment that devastates the city.
September-December _Syrian government forces, backed by Russian air power and Iranian forces, recapture IS territory on the western bank of the Euphrates River, seizing the cities of Deir el-Zour, Mayadin and Boukamal on the border with Iraq.
Aug. 23 _ IS leader al-Baghdadi resurfaces in his first purported audio recording in almost a year; he urges followers to "persevere'' and continue fighting.
Sept. 10 _ SDF launches a ground offensive, backed by U.S.-led coalition airstrikes, to take the last territory held by IS in Syria's eastern province of Deir el-Zour.
February-March _ SDF besiege IS in the village of Baghouz, the last scrap of land the group holds. The advance stalls as some 30,000 civilians, mostly families of IS members, are evacuated from the pocket over the course of weeks.
March 23 _ SDF declares the complete capture of Baghouz and the end of the Islamic State group's territorial "caliphate.''