Using ab initio density functional theory, we have investigated the electronic structures of self-assembled chains comprising Ag atoms and organic molecules.