Competing and cooperating phenomena in high temperature superconductors