A molecule that carries electrons (or hydrogen ions (H+)) between an electron donor and an electron acceptor.