We study optimal securitization when the secondary market has cheapest-to-deliver pricing. More specifically, we study theoretically and empirically how lenders pool mortgages to create agency mortgage-backed securities (MBS) taking into account how To-Be-Announced (TBA) markets operate. First,...