The disturbances were the latest to rock the northern province of Al-Hoceima since the death of a local fishmonger in a garbage truck last October sparked nationwide protests.
The province lies in the Rif -- a long neglected ethnically Berber region that was at the heart of a 2011 movement for reform that saw King Mohammed VI cede some of his powers.
Governor Mohammed Zhar was fired during a visit to Hoceima yesterday by Interior Minister Mohamed Hassad, the ministry source said.
During Sunday's disturbances, stone-throwing protesters attacked a police barracks outside Al-Hoceima then set fire to adjacent buildings.
More From This Section
Provincial authorities said they made 14 arrests but said nothing about the identity or motives of the protesters.
Moroccan newspapers reported that several dozen police were injured, six of them seriously, after officers were trapped by the blaze and several jumped from the roof to escape the flames.
There was no official confirmation of the casualty toll.
According to the Le360 news website, the disturbances began with a march by local schoolchildren protesting against the lack of teachers and school transport, which then got out of hand.
There have been repeated disturbances in the province since Mouhcine Fikri, 31, was crushed to death in a garbage truck on October 28 as he tried to protest against the seizure and destruction of swordfish, which had been caught out of season.
There were protests in early January and again in early February.