Natural resource depletion and environmental issues like pollution are the main problem that we face now a days but the most appropriate option is photovoltaic technology that seems to be the best option to get rid of these problems. In this study, via in situ polymerization, a ternary nano composite graphene- Rare earth metal oxide/porous polyaniline (rGO- Rare earth metal oxide /porous PANI), was prepared. Than as a potential counter electrode material for Dye Sensitized Solar Cells (DSSCs) this nanocomposite (rGO-Rare earth metal oxide/porous PANI) was used in order to yield a Dye sensitized solar cells having very high specific capacitance, outstanding rate capability and life of cycle. A series of characterization such as Scanning electron microscope (SEM), X-ray diffraction (XRD), and Fourier transform resonance infrared (FTIR) has done. This study showed that a ternary nanocomposites with wellconnected nanosheets and porous structure can be successfully synthesized. By using these new CEs photovoltaic performance of the DSSCs was investigated using I-V measurements. In relationship to the other nanomaterials, the brilliant electrochemical performance of rGO- Rare earth metal oxide /porous PANI nanocomposite is due to large specific surface area brought from graphene and porous PANI, excellent electrical conductivity, energy density and good life cycle derived from Rare earth metal.