Titanium dioxide (TiO2) has been widely used to solve energy and environmental pollution problems due to its excellent properties. In this study, the precursor (HTiOF3) with a spherical structure composed of hexagonal prisms was prepared via a simple solvothermal method using tetrabutyl titanate, hydrofluoric acid, glacial acetic acid and isopropanol as raw materials. Then, the calcination time and temperature of the precursor were controlled to prepare anatase TiO2 with different morphologies, and the photocatalytic performance of the prepared catalysts was studied. When the precursor was calcined at 600 °C for 7 h, the prepared TiO2 had a unique hexagonal framework structure and exhibited excellent photocatalytic performance. The degradation rate of the RhB solution was 98.58% at 40 min and the rate of hydrogen evolution was 2508.12 μmol g-1 h-1.