The Federal Agricultural Mortgage Corporation, also known as Farmer Mac, is a stockholder-owned, publicly traded company that was chartered by the United States federal government in 1988 to serve as a secondary market in agricultural loans such as mortgages for agricultural real estate and rural housing. The company purchases loans from agricultural lenders, and sells instruments backed by those loans. The company also works with the United States Department of Agriculture.