According to recent experiments and predictions, the orientation of the polarization at the surface of a ferroelectric material can affect its surface chemistry. Here we demonstrate the converse effect: the chemical environment can control the polarization orientation in a ferroelectric film. In situ synchrotron x-ray scattering measurements show that high or low oxygen partial pressure induces outward or inward polarization, respectively, in an ultrathin PbTiO 3 film. Ab initio calculations provide insight into surface structure changes observed during chemical switching. DOI: 10.1103/PhysRevLett.102.047601 PACS numbers: 77.80.Fm, 68.43.Àh, 68.47.Gh, 77.84.Dy Ferroelectric materials are fascinating and useful because the spontaneous polarization which appears below the Curie temperature T C is strongly coupled to long-range electric and stress fields, leading to outstanding properties such as piezoelectricity and electrically switchable structure [1,2]. Understanding the behavior of ultrathin ferroelectric films, for which interfacial effects begin to dominate over the physics of the film interior, has been an area of major progress recently [3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18]. One of the most important interfacial effects is the screening of the intrinsic surface charge of the polar phase [19], since this bound charge produces an electric field opposing the bulk polarization. The energy of this depolarizing field can be reduced by stripe domain formation [3][4][5][6][7][8][9][10] or by compensation via free charge at the interfaces [8,[11][12][13][14][15][16][17]. In both cases, incomplete screening leads to a depression of T C for thinner films and a critical thickness below which the polar phase is not stable. While electronic charge in metallic electrodes provides screening adequate to stabilize the polar phase down to nanometer dimensions [8,11,12,17], similar small critical thicknesses have been observed for films without surface electrodes [2,13,15,16]. Ab initio calculations [15,16] have indicated that extra ions or point defects could be providing charge compensation at these surfaces. Such ionic compensation of ferroelectric surfaces has also been inferred from electric force microscopy measurements [20]. The electronic or ionic nature of the compensating charge at interfaces has become a subject of debate for polar oxides in general [19,21,22].Because of this evidence that ions can provide surface charge compensation for ferroelectrics, potentially giving new device functionality, several recent studies have focused on the interaction between the chemistry of the environment and the polarization orientation. Experiments have shown that ferroelectric surfaces with opposite polarity have different properties for adsorbing molecules [23,24]. Ab initio calculations have found that catalytic activity [25] and equilibrium surface stoichiometry [26] depend upon polarization orientation. In this work, we demonstrate the converse effect-that the chemical environment can control the p...