The photoanode optimization of dye-sensitized solar cells (DSSCs) has been developed to create renewable devices based on green chemistry. TiO2 plays a crucial role in light absorption, charge separation, and electron transport within the photoanode of DSSCs. Modifying mesoporous TiO2 photoanode using lignin-template has been considered a viable option for photocatalyst synthesis. Lignin derived from rice husk is a potential material due to its abundant sources in many countries. Therefore, in this work, rice husk lignin was employed for non-toxic and low-cost material performance improvement of TiO2. Experimental results showed that the best efficiency and current density were identified as the effect of adding a 5% concentration of lignin on the TiO2 composite, namely 4.81% PCE.