The influence of oxygen partial pressure during the deposition of piezoelectric strontium-doped lead zirconate titanate thin films is reported. The thin films have been deposited by RF magnetron sputtering in an atmosphere of high purity argon and oxygen (in the ratio of 9:1), on platinum-coated silicon substrates (heated to 650 degrees C). The influence of oxygen partial pressure is studied to understand the manner in which the stoichiometry of the thin films is modified, and to understand the influence of stoichiometry on the perovskite orientation. This article reports on the results obtained from films deposited at oxygen partial pressures of 1-5 mTorr. The thin films have been studied using a combination of X-ray photoelectron spectroscopy (XPS), glancing angle X-ray diffraction (GA-XRD), and atomic force microscopy (AFM). XPS analysis highlights the marked influence of variations in oxygen pressure during sputtering, observed by variations in oxygen concentration in the thin films, and in some cases by the undesirable decrease in lead concentration in the thin films. GA-XRD is used to study the relative variations in perovskite peak intensities, and has been used to determine the deposition conditions to attain the optimal combination of stoichiometry and orientation. AFM scans show the marked influence of the oxygen partial pressure on the film morphology.