The diffusion of ions through a semipermeable membrane into a region of lower ion concentration (i.e. down an electrochemical gradient); especially that of hydrogen ions (protons) which forms part of the biochemical system for the synthesis of ATP and hence the transfer of energy in living organisms.