If it is pure, the substance is either an element or a compound. If a substance can be separated into its elements, it is a compound. If a substance is not chemically pure, it is either a heterogeneous mixture or a homogeneous mixture. If its composition is uniform throughout, it is a homogeneous mixture