A mortgage-backed security is a type of asset-backed security which is secured by a mortgage or collection of mortgages. The mortgages are aggregated and sold to a group of individuals that securitizes, or packages, the loans together into a security that investors can buy.