An obscure conflict is flaring in the Caucasus. It could draw in Russia and Turkey.

As fierce fighting continues between bitter rivals Azerbaijan and Armenia over a breakaway region, fears are growing of a regional war that could draw in Russia and Turkey.

The two former Soviet republics have reported that dozens of fighters have been killed and hundreds wounded since hostilities broke out Sunday.

On Tuesday, both accused each other of firing directly into each other's territory beyond the conflict zone, as civilian deaths grew and fighting raged for a third day.

As the violence escalates, NBC News looks at the main players and what is behind the recent fighting.

What is Nagorno-Karabakh?

At the heart of the conflict is Nagorno-Karabakh, a mountainous region slightly bigger than Rhode Island. It is internationally recognized as part of Azerbaijan but has been under de facto Armenian control since the early 1990s.

Its allocation to Azerbaijan during the Soviet era was contested by its ethnic Armenian majority. This led to a war after the Soviet Union collapsed in the early 1990s and Nagorno-Karabakh attempted to declare independence.

Image: AZERBAIJAN-ARMENIA-KARABAKH-CONFLICT (Armenian Foreign Ministry via AFP - Getty Images)
Image: AZERBAIJAN-ARMENIA-KARABAKH-CONFLICT (Armenian Foreign Ministry via AFP - Getty Images)

Some 30,000 died in the conflict, which also displaced around 1 million before a cease-fire in 1994. Since then, Nagorno-Karabakh has remained a breakaway region inside Azerbaijan.

There is a local leadership in Nagorno-Karabakh, but the territory, home to about 150,000 people, relies on Armenia for financial support.

Long-running negotiations mediated by Russia, the United States and France have seen little progress, and there have been periodic clashes on the region’s borders.

Why is there fighting now?

Tensions between the two sides simmered over the summer, spilling into deadly clashes in July, which led to Sunday’s hostilities.

The escalation in July was perceived to be a setback for Azerbaijan, which was reported to have lost a high-profile general in the fighting, said Kevork Oskanian, a political science research fellow at the University of Birmingham in the United Kingdom.

Sunday’s clashes may have been an attempt by Azerbaijan to save face, Oskanian said.

But while the latest bout of fighting started over the weekend, the conflict’s roots go back centuries.

Armenians see Nagorno-Karabakh as their ancient kingdom’s province of Artsakh, Oskanian said.

Meanwhile, the area has central cultural importance to Azeris, who trace Shusha in modern-day Nagorno-Karabakh back to 18th-century Karabakh Khanate.

While religion is used by both sides for propaganda purposes, in both majority Christian Armenia and mainly Muslim Azerbaijan, Oskanian said the conflict is almost exclusively about competing secular nationalism on both sides.

“On the Armenian side, you often hear the argument that this is a struggle over life and death, that if their side lost, it would mean the annihilation of the Karabakh Armenians, and, perhaps, of Armenia itself,” he wrote in an email. “On the Azerbaijani side, people talk about the importance of Karabakh to their sense of what it means to be Azerbaijani.”

What’s Turkey’s role?

Turkey has cultural, economic and political ties with Azerbaijan, and the two nations also held large military exercises in July and August.

Turkey’s strongman president, Recep Tayyip Erdogan, said Monday his country would stand with “brotherly Azerbaijan will all its resources and heart.”

Turkey is trying to shore up domestic legitimacy by supporting fellow Turkic nation Azerbaijan, Laurence Broers, associate fellow with the Russia and Eurasia programme at the London think-tank Chatham House, said in an email.

“It has recent battle experience in several regional theaters, and it also has a defense industry keen for new markets,” Broers said.

Pashinyan, Armenia’s prime minister, has called on the international community to halt any possible interference by Turkey, which, he said, will destabilize the region.

In what could be a major escalation of the violence Tuesday, Armenia alleged that one of its warplanes was shot down by a Turkish fighter jet, killing the pilot, but Ankara has denied any involvement.

Armenian officials have also accused Turkey, a NATO member, of supplying Azerbaijan with fighters from Syria and weapons. Both Azerbaijan and Turkey deny it.

Turkey has been in a bitter dispute with Armenia over the mass killing of 1.5 million ethnic Armenians by the Ottoman Empire, centered in present-day Turkey, in early 20th century, which Armenia considers a genocide. The Turkish government has vociferously denied that the killings constitute a genocide.

Who else is involved?

Russia has remained the most active international player in the conflict, and the main mediator.

Moscow tries to maintain good relations with both sides of the conflict and deepen its influence in the region, Oskanian said. The Kremlin also does not want tensions to spin out of control and draw in outside powers — notably Turkey, he added.

While the U.S. remains one of the mediators in the conflict, Nagorno-Karabakh has not been prioritized by Washington since 2001, Broers said.

The recent flare-up has drawn America’s attention, however, with Secretary of State Mike Pompeo urging both sides to halt the violence Tuesday.

Reality TV star Kim Kardashian West, who has Armenian roots, has also commented, urging “diplomatic measures to prevent unnecessary escalation and tragedy” in a series of tweets Sunday, calling on Azerbaijan to “cease all offensive use of force.”

What’s next?

The worst-case scenario is an all-out war involving Russia and Turkey, experts say, including Broers.

The conflict could destabilize the South Caucasus region — Armenia, Azerbaijan and Georgia — which serves as a corridor for pipelines transporting oil and gas to world markets.

But Broers and Oskanian said pipelines are not the primary consideration, although they may become so if the conflict becomes extended.

“Oil and gas pipelines run quite close to the present front line. A few dozen kilometers in fact,” Oskanian said.

The Associated Press contributed to this report.