A theory of superconductivity is presented, based on the fact that the interraction between electrons resulting from virtual exchange ofphonons is attractive when the energy difference between the electrons state involved is less than thep honon energy,hω/2π.