To separate a mixture of salt and water, you can try first by using filter paper hen with the extra water part set it out to the window so that the salt water evaporates and only the salt is remaining.
Ionic compounds is your answer. What happens is one atom donates electron(s) to the other atom, making one positive and the other negative. The opposite atoms attract, forming an ionic bond.
Hope this helps! :)