BAMAKO, Mali — The ethnic violence that has gripped central Mali, resulting in the death of as many as 600 people, has led to the fall of the government.

The office of President Ibrahim Boubacar Keita said late Thursday that he had accepted the resignations of Prime Minister Soumeylou Boubeye Maiga and his entire cabinet.

Mr. Maiga was appointed in December 2017 and reappointed last September, after Mr. Keita was re-elected. But he became a lightning rod for deep anger, expressed by influential Muslim clerics and at mass protests, over massacres in the Mopti region, a mixed ethnic area in the center of the country.

Lawmakers from both the governing and opposition parties submitted a motion of no confidence on Wednesday that held Mr. Maiga and his administration responsible for failing to curb the violence.