We report the existence of metallic two dimensional electron gases (2DEGs) at the (001) and (101) surfaces of bulk-insulating TiO2 anatase due to local chemical doping by oxygen vacancies in the near-surface region. Using angle-resolved photoemission spectroscopy, we find that the electronic structure at both surfaces is composed of two occupied subbands of dxy orbital character. While the Fermi surface observed at the (001) termination is isotropic, the 2DEG at the (101) termination is anisotropic and shows a charge carrier density three times larger than at the (001) surface. Moreover, we demonstrate that intense UV synchrotron radiation can alter the electronic structure and stoichiometry of the surface up to the complete disappearance of the 2DEG. These results open a route for the nano-engineering of confined electronic states, the control of their metallic or insulating nature, and the tailoring of their microscopic symmetry, using UV illumination at different surfaces of anatase.In its pure stoichiometric form, the transition metal oxide (TMO) TiO 2 is a transparent insulator that crystallizes in mainly two different phases: rutile and anatase. Both phases have been studied extensively over the last decades, due to their photocatalytic properties discussed in several reviews [1][2][3][4]. Recently, a strong interest in the anatase phase of TiO 2 also surged, owing to its potential for applications in other research fields. For instance, networks of anatase nanoparticles are found in dye-sensitized solar cells [5,6], anatase thin films can be used as transparent conducting oxides [7], and devices based on anatase can be envisioned in spintronics [8,9]. To harness such a wide range of functionalities and guide potential applications using anatase, it is thus critical to understand its microscopic electronic structure, which will be ultimately responsible for the remarkable properties of this material. Moreover, as most applications in microelectronics or heterogeneous catalysis involve essentially the electronic states at the material's surface, it is crucial to directly measure and characterize such states.More generally, the study of two-dimensional electron gases (2DEGs) in TMO surfaces/interfaces has become a very active field of research. The archetypal example, SrTiO 3 -based heterostructures, display many fundamentally interesting properties [10][11][12], such as field-effect induced insulator-to-superconductor transitions [13], magnetism [14] and the coexistence of magnetism and superconductivity [15]. More recently, the discoveries of 2DEGs at the bare (001), (110) and (111) It is well established that the TiO atomic planes, and their ability to accommodate chemical doping by oxygen vacancies at the surface region, play a key role in the formation of the 2DEG at the surface of SrTiO 3 (001). Thus, as a step forward to understand the formation of 2DEGs in TMOs, it is natural to focus on pure TiO 2 crystals such as rutile or anatase. In fact, it is known that, for both rutile and anatase crystal sur...