This thesis uncovers the behavior of market participants in reponse to regulatory changes in the financial intermediation sector. The first essay, "Repo Regret?", I find that Independent Mortgage Companies (IMCs), which accounted for a third of all mortgage originations in the U.S., experienced an exogenous increase in their funding after the passage of the 2005 bankruptcy reform act. The act increased creditor protection by including mortgage related collateral to bankruptcy safe harbored repos, thereby expanding IMCs’ funding opportunities. Using multiple identification strategies based on funding constraints, discontinuity in securitization propensity, and geographic discontinuity in anti-predatory lending laws, I find that IMCs responde...