Perversely, the securities lending office of AIG began to take those risky bets in 2005 precisely at the moment that AIG’s own Financial Products division decided it was too risky to continue writing CDS on mortgage-backed securities. By the summer of 2007, AIG’s securities lending program had $45 billion invested in high-yield private label MBS.