In the case of covalent compounds, like hydrocarbons in vegetable oil, they are immiscible in water. this is because they are non-polar. therefore water, which is polar, cannot separate covalent molecules from each other, so instead, the covalent mixture pools together, not mixing with water. as is the case with oil and water.