Azerbaijani soldiers on Tuesday hoisted their country's flag in the final district given up by Armenia under a peace deal that ended weeks of fighting over the disputed Nagorno-Karabakh region.

A column of Azerbaijani military trucks entered the Lachin district overnight, taking over the last of three regions around Karabakh handed over by Armenia under the Russian-brokered agreement.

Like in other districts handed over by the separatists, residents of Lachin took as much as they could pack
Like in other districts handed over by the separatists, residents of Lachin took as much as they could pack AFP / Karen MINASYAN

AFP journalists saw soldiers raising the Azerbaijani flag over an administrative building in the town of Lachin overnight and another alongside the road in the morning.

Armenia agreed to hand over the three districts -- Aghdam, Lachin and Kalbajar -- as part of the November deal that stopped an Azerbaijani offensive that had reclaimed swathes of territory lost to Armenian separatists in a 1990s war.

AFP journalists in Lachin town saw a column of Azerbaijani trucks flanked by military vehicles from Russia
AFP journalists in Lachin town saw a column of Azerbaijani trucks flanked by military vehicles from Russia AFP / Karen MINASYAN

Under the agreement, some 2,000 Russian peacekeepers deployed between the two sides and along the Lachin corridor, a 60-kilometre (35-mile) route through the district that connects Karabakh's main city Stepanakert to Armenia.

Russian military vehicles accompanied Azerbaijani trucks driving along the corridor overnight and were deployed at the main crossroads in Lachin.

An Azerbaijani soldier fixes a national flag on a lamp post in the town of Lachin
An Azerbaijani soldier fixes a national flag on a lamp post in the town of Lachin AFP / Karen MINASYAN

Most of the town's residents fled in advance of the takeover, but 48-year-old Levon Gevorgyan, the owner of a local grocery store, said he had decided to stay.

"I am afraid only of God. I have been here for 22 years, I started from nothing, I built everything," he said. "I hope I will be able to continue, I still have a loan to pay. If I have to leave, I will burn everything."

People with their belongings wait on the side of a road on the outskirts of the town of Lachin
People with their belongings wait on the side of a road on the outskirts of the town of Lachin AFP / Karen MINASYAN

In a televised address on Tuesday, Azerbaijan's President Ilham Aliyev celebrated the dawn of "a new reality".

Map locating the disputed region of Nagorno-Karabakh with zones of control.
Map locating the disputed region of Nagorno-Karabakh with zones of control. AFP / Jonathan WALTER

"We've driven the enemy out of our lands. We've restored our territorial integrity. We've ended the occupation," he said.

Nagorno-Karabakh broke from Azerbaijan's control in a war after the 1991 collapse of the Soviet Union that left some 30,000 people dead.

Residents packed up and fled as houses burnt on the outskirts of Lachin town
Residents packed up and fled as houses burnt on the outskirts of Lachin town AFP / Karen MINASYAN

The region declared independence but it was never recognised by any country, including Armenia, which strongly backs the separatists.

The peace accord signed on November 9 was reached after six weeks of fighting that saw Azerbaijan's army overwhelm separatists forces and threaten to advance on Stepanakert.

Prodding her cows forward with a long stick, Asya Petrosyan drives the herd along the snow-covered Lachin corridor, the last road out of Nagorno-Karabakh to Armenia. With Azerbaijani forces preparing to take back this district on Tuesday, the 67-year-old
Prodding her cows forward with a long stick, Asya Petrosyan drives the herd along the snow-covered Lachin corridor, the last road out of Nagorno-Karabakh to Armenia. With Azerbaijani forces preparing to take back this district on Tuesday, the 67-year-old is rushing to bring 30 animals more than 55 kilometres (35 miles) to the town of Goris across the border in Armenia. AFPTV / Andrey BORODULIN

Under the agreement, Armenia is losing control of seven districts that it seized around Karabakh in the 1990s.

The separatists are retaining control over most of Karabakh's Soviet-era territory but have lost the key town of Shusha.

Aliyev said that nearly 50,000 Azerbaijanis had lived in the Lachin district before the 1990s war and that they would be returning in "the nearest future".

In Baku on Tuesday, crowds carrying Azerbaijani flags celebrated the takeover of Lachin, an area glorified in a popular Azerbaijani folk song.

Olesya Vartanyan of the International Crisis Group told AFP that while the handover of the last district signalled that the peace deal was "working", the new status quo remains "unclear".

"The Moscow-brokered agreement is very precise when it comes to the territories' handover, but is ambiguous on a number of aspects such as the mandate of Russian peacekeepers and how the life of the local population, both Armenian and Azerbaijani, will be organised," she said.

Moscow's peacemaker role has overshadowed France and the United States -- the three countries that form the Minsk Group, which led talks on the Karabakh conflict for decades but failed to achieve a lasting agreement.

France's position in future negotiations may be further under threat after Azerbaijani lawmakers last week demanded the country be expelled from the Minsk Group.

The move came after the French Senate adopted a non-binding resolution calling on France to recognise Karabakh as an independent state.

While Azerbaijan has also called for its staunch ally Turkey to play a role in the peacekeeping mission, Moscow has repeatedly said that Ankara will have no troops on the ground.

On Tuesday Russia and Turkey agreed to monitor the truce from a joint peacekeeping centre, Ankara's defence ministry said.

Since the announcement of the peace deal -- which leaves Karabakh's future political status in limbo -- Armenian Prime Minister Nikol Pashinyan has been under fire at home, with regular demonstrations in the capital Yerevan calling for his resignation.

Groups of several dozen protesters briefly blocked the city's streets in various districts on Tuesday, while some marched shouting "Pashinyan resign!" and "Traitor!". Several people were detained.