Research on solar cell devices is not only always related to how to obtain high power conversion efficiency (PCE), but also other factors need to be fully considered, such as the cost and their ecofriendliness. In this present research, a low‐cost and ecofriendly dye‐sensitized solar cell (DSSC) is being developed using a graphite‐based nanocomposite and an unusual plant extract (Garcinia mangostana L.) as the dye photosensitizer. A rational design on how to use graphite as a photoanode and counter electrode (CE) in DSSC is carried out by combining the graphite with ZnO and multiwalled carbon nanotube (MWCNT), respectively. It is observed that graphite acts as a matrix for ZnO and MWCNT to make these nanocomposites have very appropriate optoelectronics and catalytic properties compared to the control sample. Therefore, they could serve as an excellent photoanode and CE, respectively. It is also expected that the anthocyanin absorption in Garcinia mangostana L. dye which is found in the visible light range can efficiently absorb photons, thus supporting the enhancement of photovoltaic performance of the DSSC. The generated voltage (V) and current (I) from light irradiation using commercial lamps are higher compared to halogen lamps, indicating that the obtained DSSC has potential as indoor powered devices. It is believed that our study can shed light on the development of DSSC using low‐cost material graphite as the main component for the realization of low‐cost DSSC devices.