Prior to the siege, Madjoari had a population of between 14,000 and 15,000.[4][1] Amnesty International puts the start of the siege at February 2021, although a protester against the siege interviewed by VOA Africa stated in July 2021 that the town had already been under siege for over a year.[5] On June 29, 2021, the jihadists issued an ultimatum to the chief of Madjoari that if the town's population did not flee, the jihadists would destroy the town and everyone in it. In the ultimatum, the jihadists threatened to blow up the Singou bridge that connects the town to Kompienga, the provincial capital of Kompienga Province where Madjoari is located.[4]
By July 2021, only a thousand residents of Madjoari remained of the original 15,000 or so. Madjoari and the nearby town of Tambarga were the only two places not under direct jihadist control.[4] Many residents fled across the border to Benin.[4] On July 22, a Burkinabe soldier was killed by an IED during a sweeping operation in the forest around Madjoari.[6] Two other soldiers were injured in the explosion.[6] Throughout the rest of 2021 and the first half of 2022, JNIM and Ansarul Islam continued their attacks on civilians and soldiers in Madjoari, with ACLED describing Madjoari department as "the largest buffer zone that JNIM has established."[2]
JNIM and Ansarul Islam intensified their attacks on Madjoari in early May 2022.[2][1] On May 14, jihadists entered the town and killed seventeen people.[7] Five days later on May 19, they led an assault on the Burkinabe military base in Madjoari, which was staffed by Burkinabe forces and VDP militiamen.[8] The base was shelled first, and then the assault began with heavy fighting.[8] 11 Burkinabe soldiers were killed in the battle, and twenty more were wounded. The battle was halted by Burkinabe planes bombing the area, forcing the jihadists to retreat and killing about fifteen fighters.[8] The jihadists, however, were able to overrun the military base which Burkinabe officials called the "last bastion" of the department.[9]
Following the battle at the military base, around 900 civilians remained in Madjoari.[8] However, the remaining civilians fled within the next week, some evacuations organized by remaining Burkinabe soldiers and VDP.[2][1] On May 25, 2022, jihadists kidnapped over fifty people fleeing Madjoari and Tambarga on a road outside the city near Singou.[1][10] The refugees were fleeing towards Nadiagou.[1] All of the victims were men, mostly young men, and they were taken into the bushes and shot by the jihadists.[7] Only women, children, and elderly were spared, although there were only four in the group to begin with.[1] A survivor of the siege and massacre stated that around fifty more civilians are missing.[7] Another survivor of the siege added that the massacre was retaliation for the jihadist's failure to capture all of Madjoari during their assault on the base. The jihadists had had meeting in villages in the department, seeking to enact revenge for the deaths of seventy of their comrades killed during the battle.[7][10]