Like dissolves like. Polar solutes dissolve in polar solvent and nonpolar solutes dissolve in nonpolar solvent.
There are electrostatic forces of attraction, hydrogen bonding and dipole dipole interaction which causes polar solutes to dissolve in polar solvents. There is van der Waals forces of attraction or London dispersion forces which causes nonpolar solutes to dissolve in nonpolar solvent.