BEIRUT (AP) — The Syrian government regained control of the frontier with the Golan Heights for the first time in seven years on Monday, after Islamic State-linked militants gave up their last pocket of territory in the area.

The breakthrough against the militants, reported by state media and an opposition-linked war monitoring group, capped a six-week-long campaign to retake the southwest corner of the country.

Rebels captured the area along the Golan Heights after a popular uprising broke out against President Bashar Assad in 2011. An IS-linked outfit known as the Khaled bin Al-Waleed Army later seized the area from the opposition fighters.

The Britain-based Syrian Observatory for Human Rights said the militants surrendered control of the Yarmouk Basin in southwestern Syria on Monday.

U.N. peacekeeping forces first deployed along the frontier in 1974 to separate Syrian and Israeli forces.

Israel has largely kept to the sidelines of the Syrian civil war, but has said it will not allow Iran or the Lebanese militant group Hezbollah to establish a permanent military presence near the frontier. Both are allied with Assad and have provided crucial military support to his forces.

Government forces pressed ahead with their offensive despite threats by the Islamic State group to kill civilians it recently captured in a nearby province.

The extremists abducted around 18 people, mostly women, in a wave of attacks in the nearby province of Sweida last Wednesday that killed more than 200 people.

On Saturday, the group released a hostage video of a woman saying she was being held along with other women from Sweida. The woman said she would be freed if the government halted its offensive against the militants and released IS detainees. She said she was being threatened with death if the government pressed its offensive.

The Sweida 24, an activist collective in Sweida, said IS sent the photos of 14 women they are holding to their relatives, saying they want to negotiate over them.

Sweida 24 said IS is believed to be holding 30 people, including 20 women whose ages range between 18 to 60. It said IS is also believed to be holding 16 young boys and girls.

The activist group said the bodies of two women were found near the village of Shabki, a focus of Wednesday’s attack. One had been shot in the head and the other, an elderly woman, apparently died of exhaustion. Four other women were found alive hiding in a cave, it said.

Those abducted are members of the minority Druze sect. The Druze, followers of an esoteric offshoot of Islam, have kept their own local militias in the area. The Sunni Muslim extremists of IS view them as apostates, and have a history of abducting members of other religious minorities and keeping women as sex slaves.

Until Wednesday, Sweida, home to a predominantly Druze community, had largely been spared from Syria’s seven-year-long civil war.

IS has been driven from virtually all the territory it once controlled in Syria and Iraq, but holds scattered pockets in southern Syria and along the border.

The Observatory said an estimated 1,200 IS-linked fighters agreed to give up their pockets near the Golan Heights on Monday. Their fate was unclear.