As part of the government response to the Deepwater Horizon blowout, a Well Integrity Team evaluated the geologic hazards of shutting in the Macondo Well at the seafloor and determined the conditions under which it could safely be undertaken. Of particular concern was the possibility that, under the anticipated high shut-in pressures, oil could leak out of the well casing below the seafloor. Such a leak could lead to new geologic pathways for hydrocarbon release to the Gulf of Mexico. Evaluating this hazard required analyses of 2D and 3D seismic surveys, seafloor bathymetry, sediment properties, geophysical well logs, and drilling data to assess the geological, hydrological, and geomechanical conditions around the Macondo Well. After the well was successfully capped and shut in on July 15, 2010, a variety of monitoring activities were used to assess subsurface well integrity. These activities included acquisition of wellhead pressure data, marine multichannel seismic profiles, seafloor and water-column sonar surveys, and wellhead visual/acoustic monitoring. These data showed that the Macondo Well was not leaking after shut in, and therefore, it could remain safely shut until reservoir pressures were suppressed (killed) with heavy drilling mud and the well was sealed with cement. In mid-June, a Well Integrity Team (WIT) was created to make recommendations to the government on whether a shut in of the Macondo Well could be safely undertaken and if so, under what conditions. The WIT consisted of the authors of this paper plus engineers from the Department of Energy National Laboratories: Sandia, Los Alamos, and Lawrence Livermore. Although the WIT analyzed both the geologic environment of the Macondo Well and the hydraulic and mechanical performance of engineered components of the well (wellhead, casing flow paths, rupture disks, etc.), this paper deals only with geologic aspects of well integrity. In this paper, we summarize the WIT's assessment of the geologic risks of shutting in the Macondo Well and provide analyses of wellhead pressure and geophysical monitoring data during shut in. These analyses were essential for determining whether the capping stack, when closed, could remain safely shut until the well was killed. Geologic data analyzed by the WIT came from the Macondo Well and nearby wells (including relief wells) and consisted of in situ stress and fluid pressure measurements, geophysical logs, core, cuttings, and gas analyses, 3D and 2D seismic lines, seafloor bathymetry, water-column imagery, sidescan sonar surveys, and drilling records. Extensive discussions were also carried out with scientists and engineers from BP, industry experts, and other federal agencies and academia on lithologic and structural interpretations, reservoir and geomechanical analyses, oceanographic conditions, and well kill and cementing procedures.