In a mixture, we can separate the elements or compounds inside easily by using physical methods, such as filtration, evaporation, distillation etc.
However, a compund is two or more elements chemically combined together, so we cannot separate them using physical methods, only with checmicals methods such as apply heat or electricity (electrolysis)