Karl Marx said this to draw attention to the truth that when history repeats itself for the first time, it’s a tragedy. But when it repeats itself again, it becomes almost comical because people still haven’t learned the lesson. When Marx said this, he was referring to the fall of Napoleon I and the later reign of his nephew Napoleon III.