Titanium dioxide in the anatase configuration plays an increasingly important role for photo(electro)catalytic applications due to its superior electronic properties when compared to rutile. In aqueous environments, the surface chemistry and energetic band positions upon contact with water determine charge-transfer processes over solid--solid or solid--electrolyte interfaces. Here, we study the interaction of anatase (001) and (101) surfaces with water and the resulting energetic alignment by means of hybrid density functional theory. While the alignment of band positions favours charge-transfer processes between the two facets for the pristine surfaces, we find the magnitude of this underlying driving force to crucially depend on water coverage and degree of dissociation. It can be largely alleviated for intermediate water coverages. Surface states and their passivation by dissociatively adsorbed water play an important role here. Our results suggest that anatase band positions can be controlled over a range of almost one eV via its surface chemistry.