NOVELTY - Preparation of a nanocomposite photoanode (I) comprises: dispersing functionalized carbon nanomaterials in a liquid medium; dissolving/dispersing a titanium dioxide (TiO2) precursor in the obtained dispersion; reacting the precursor under sol-gel conditions; heating the obtained colloidal solution of carbon nanomaterial/nano TiO2 composite; mixing with a polymer solution; concentrating; coating the obtained concentrated paste on a conductive surface of a conductive substrate; calcining; immersing the substrate in a dye solution; and removing the substrate from the dye solution.    USE - (I) is useful for dye-sensitized solar cells (claimed).    ADVANTAGE - (I) has both high adsorption for dyes and high conductivity.    DETAILED DESCRIPTION - Preparation of a nanocomposite photoanode (I) comprises: (a) dispersing functionalized carbon nanomaterials in a liquid medium; (b) dissolving or dispersing a titanium dioxide (TiO2) precursor in a dispersion obtained in step (a), where a weight ratio between the titanium dioxide precursor and the carbon nanomaterials is 10000:1-100:1; (c) reacting the precursor under hydrothermal conditions or sol-gel conditions so as to form a colloidal solution of carbon nanomaterial/nano TiO2 composite; (d) heating the carbon nanomaterial/nano TiO2 composite colloidal solution in an autoclave at 140-350 degrees C for 5-48 hours, so as to result in anatase TiO2 in it; (e) mixing the colloidal solution having anatase TiO2 obtained in step (d) with a polymer solution; (f) concentrating the resulting mixture of the colloidal solution and the aqueous polymer solution from step (e); (g) coating a concentrated paste obtained in step (f) on a conductive surface of a conductive substrate; (h) calcining the coated layer obtained in step (g) at 300-520 degrees C in air for 10-60 minutes; (i) immersing the conductive substrate having a coating of carbon nanomaterial/nano TiO2 composite from step (h) in a dye solution, such that the dyes are allowed to adsorb onto the coating of carbon nanomaterial/nano TiO2 composite; and (j) removing the conductive substrate from the dye solution so as to prepare (I).