The tranches of a CDO reflect their risk profiles. For example, senior debt would have a higher credit rating than mezzanine and junior debt. If the loan defaults, the senior bondholders get paid first from the collateralized pool of assets, followed by bondholders in the other tranches according to their credit ratings with the lowest-rated credit paid last. The senior tranches are generally safest because they have the first claim on the collateral.