Here we report a mesoporous TiO2 with a large specific surface area and rich oxygen vacancies using a Ti-based MOF (MIL-125) as a precursor through high-temperature annealing. Such integration of a unique mesoporous structure and oxygen vacancies provides effective carrier transport channels, increases surface active sites, and enhances photocatalytic activity for the hydrogen evolution reaction.