I would argue that the colonisation of Morocco by France was a net positive event and jump-started them out of the middle ages into an industrialised society.
I fully expect to be downvoted to oblivion for this statement, I would like to express it nevertheless