Photocatalysis attracted attention as a promising technique for wastewater treatment, especially for water contaminated with organic pollutants such as dyes. However, designing a suitable photocatalyst with a simple procedure and high catalytic performance is still a big challenge for large-scale production. Here, indium-strantiom and phosphorous tridoped Bi2O3–TiO2 composite loaded on mesoporous carbon (ISP–TiO2/Bi2O3@C) was prepared via the sol-hydrothermal method. The as-prepared ISP-TiO2/Bi2O3@C displayed a mesoporous structure with a BET surface area of 84.804 m2 g−1. The photocatalytic activity of the ISP-TiO2/Bi2O3@C composite was investigated toward the degradation of rhodamine B (RB) under exposure to UV, and sunlight. It was found that ISP-TiO2/Bi2O3@C photocatalyst exhibited superior photocatalytic activity against photodegradation of RB under UV light and sunlight irradiation with a degradation percentage of 99.12, and 95.71 %, respectively. In addition, ISP-TiO2/Bi2O3@C composite displayed a distinguished recycling ability after the fifth recovery cycle, indicating a promising candidate for photocatalytic applications under UV light and sunlight. Consequentially, the higher photocatalytic activity of ISP-TiO2/Bi2O3@C under sunlight irradiation implies that the sol-hydrothermal method is promising for the preparation of efficient and low-cost TiO2-based photocatalysts for the photodegradation of various environmental pollutants.