Abstract Upwelling along the western boundary of the major ocean basin subtropical gyres has been diagnosed in a wide range of ocean models and state estimates. This vertical transport is O(5 × 106) m3 s−1, which is on the same order of magnitude as the downward Ekman pumping across the subtropical gyres and zonally integrated meridional overturning circulation. Two approaches are used here to understand the reason for this upwelling and how it depends on oceanic parameters. First, a kinematic model that imposes a density gradient along the western boundary demonstrates that there must be upwelling with a maximum vertical transport at middepths in order to maintain geostrophic balance in the western boundary current. The second approach considers the vorticity budget near the western boundary in an idealized primitive equation model of the wind- and buoyancy-forced subtropical and subpolar gyres. It is shown that a pressure gradient along the western boundary results in bottom pressure torque that injects vorticity into the fluid. This is balanced on the boundary by lateral viscous fluxes that redistribute this vorticity across the boundary current. The viscous fluxes in the interior are balanced primarily by the vertical stretching of planetary vorticity, giving rise to upwelling within the boundary current. This process is found to be nearly adiabatic. Nonlinear terms and advection of planetary vorticity are also important locally but are not the ultimate drivers of the upwelling. Additional numerical model calculations demonstrate that the upwelling is a nonlocal consequence of buoyancy loss at high latitudes and thus represents an integral component of the meridional overturning circulation in depth space but not in density space. Significance Statement The purpose of this study is to better understand what is forcing water to upwell along the western boundary at midlatitudes of the major ocean basins. This is a potentially important process since upwelling can bring heat and nutrients closer to the surface, where they can be exchanged with the atmosphere. Also, since ocean currents vary with depth, pathways followed in the upper ocean are different from those found for the deeper ocean, so the amount and location of upwelling influence where these waters go. Idealized numerical models and theory are used to demonstrate that the upwelling is ultimately driven by density changes along the western boundary of the basin that result from heat loss at high latitudes.