The microscopic property that helps determine whether or not two substances will dissolve with each other is polarity.
Polarity affects how molecules interact with each other, influencing their ability to mix and form solutions. Substances with similar polarities tend to dissolve in each other (like dissolves like).