Four gendarmes were killed and three others injured on Sunday after being ambushed in western Mali, a region prone to jihadist attacks, the paramilitary police said.
Two police vehicles were torched and two others, equipped with machine guns, were captured by the assailants during the attack in Kouala, the force said.
Two of the assailants were killed and others taken prisoner.
The gendarmerie did not say who was responsible for the attack but police, troops and Malian state targets are regularly hit by jihadist groups.
Mali has been in the throes of a nearly 11-year security crisis triggered by a regional revolt in the north that developed into a full-blown jihadist insurgency.
Thousands have died, hundreds of thousands have fled their homes and devastating economic damage has been inflicted to one of the world's poorest countries.
Since August 2020, Mali has been ruled by the military, leading to a bust-up with France, the country's traditional ally, and closer ties with Russia.
The violence has mainly affected the centre and the east and has spread to neighbouring Burkina Faso and Niger. But it has not spared the west and is spreading southwards, alarming Mali's other neighbours including Senegal.
The junta claims to have forced jihadists affiliated with Al-Qaeda and the Islamic State organisation onto the defensive.
Malian Prime Minister Choguel Kokalla Maiga said last week that there was no longer any part of the territory where the army could not go, although the authorities had previously acknowledged that two-thirds of the territory was outside state control.
Maiga's security assessment has been contradicted by experts and a recent UN report that said security conditions have continued to deteriorate in the central Sahel, "particularly in Burkina Faso and Mali".