Mortgage-backed securities are financial instruments backed by a pool of residential or commercial mortgages. They are created by government agencies, government-sponsored enterprises, or private institutions to provide liquidity in the mortgage market and transfer risk from lenders to investors.