Fannie Mae is a government-sponsored enterprise that provides liquidity to the U.S. mortgage market by purchasing and guaranteeing mortgages from lenders, thereby facilitating homeownership and affordable housing. It plays a crucial role in the secondary mortgage market by issuing mortgage-backed securities to investors.