How is Osmosis Related to Diffusion?

Osmosis and diffusion are not really related but they do have some things in command. Ok diffusion is when the particles spread out to form and equal distrubution of atoms and osmosis is the same but through a semi permeable membrane and only water molecules move.