In the solution, the solute molecules interact with solvent molecules.
If the intermolecular forces are similar between the solvent and the solute enthalpy of solution is close to zero.
Ideal solution is the mixture that has little to no net intermolecular interactions that differentiates it from its ideal behavior, intermolecular forces of attraction are the same and have the same strength, both the solvent and solute will mix at random.