Fannie Mae and Freddie Mac were created by Congress and essentially guarantee the stability and prosperity of the mortgage market. By buying up mortgages from smaller banks and either holding them or repackaging them into mortgage-backed securities for other investors, they contribute to a thriving mortgage market that has more mortgage options for both homebuyers and investors. Despite being created by the government, Freddie Mac and Fannie Mae do not provide government-backed loans.