We estimate structurally a model of the term structure of interest rates that is consistent with no arbitrage but allows for demand pressures. The term structure in our model is determined through the interaction of risk-averse arbitrageurs and preferred-habitat investors with preferences for specific maturities. The model is estimated on US real rates during the 2000s and allows for two factors: one corresponding to the short rate and one to preferred-habitat demand. We find that the puzzling drop in long rates during 2004-05 (Greenspan conundrum) is driven by the demand factor, which in turn is correlated with purchases of long-term bonds by foreign officials. For example, foreign purchases in July 2004 appear to have lowered the 10-year rate by about 100 basis points. Foreign purchases have larger effects following periods when arbitrageurs have lost money.