We employ empirical pricing models for mortgage-backed security (MBS) yields and for mortgage rates to measure deviations from normal market functioning in order to assess how the Federal Reserve MBS purchase program--a 16 month program announced on November 25, 2008 and completed on March 31, 2010--affected risk premiums that were embedded in mortgage and swap markets. Our pricing models suggest that the announcement of the program, which signaled strong and credible government backing for mortgage markets in particular and for the financial system more generally, reduced mortgage rates by about 85 basis points between November 25 and December 31, 2008, even though no MBS had (yet) been purchased by the Federal Reserve ; Once the Federal Reserve's MBS program started purchasing MBS, we estimate that the abnormal risk premiums embedded mortgage rates decreased roughly 50 basis points. However, observed mortgage rates declined only slightly because of generally rising interest rates. ; After May 27, 2009 fairly normal pricing conditions existed in U.S. primary and secondary mortgage markets; that is, the relationship between mortgage rates and its determinants was similar to that observed prior to the financial crisis. After the end of the Federal Reserve's MBS purchase program on March 31, 2010, mortgage rates and interest rates more generally were significantly less than they had been at the beginning. ; In sum, we estimate that the Federal Reserve's MBS purchase program removed substantial risk premiums embedded in mortgage rates because of the financial crisis. The Federal Reserve also re-established a robust secondary mortgage market, which meant that the marginal mortgage borrower was funded by the capital markets and not directly by the banks during the financial crisis-had bank funding been the only source of funds, primary mortgage rates would have been much higher. ; Lastly, many observers have attributed part of the Federal Reserve's effect from purchasing MBS to portfolio rebalancing. We find that if portfolio rebalancing had a substantial effect, it may have had its greatest importance only after the Federal Reserve's purchases ended, but while the Federal Reserve held a substantial portion of the stock of outstanding MBS.