Nanocomposites composed of TiO2 and carbon materials (C) are widely popular photocatalysts because they combine the advantages of TiO2 (good UV photocatalytic activity, low cost, and stability) to the enhanced charge carrier separation and lower charge transfer resistance brought by carbon. However, the presence of carbon can also be detrimental to the photocatalytic performance as it can block the passage of light and prevent the reactant from accessing the TiO2 surface. Here using a novel interfacial in situ polymer encapsulation-graphitization method, where a glucose-containing polymer was grown directly on the surface of the TiO2, we have prepared uniform TiO2@C core-shell structures. The thickness of the carbon shell can be precisely and easily tuned between 0.5 and 8 nm by simply programming the polymer growth on TiO2. The resulting core@shell TiO2@C nanostructures are not black and they possess the highest activity for the photodegradation of organic compounds when the carbon shell thickness is 1-2 nm, corresponding to ∼3-5 graphene layers. Photoluminescence and photocurrent generation tests further confirm the crucial contribution of the carbon shell on charge carrier separation and transport. This in situ polymeric encapsulation approach allows for the careful tuning of the thickness of graphite-like carbon, and it potentially constitutes a general and efficient route to prepare other oxide@C catalysts, which can therefore largely expand the applications of nanomaterials in catalysis.