American International Group agreed to sell mortgage insurer United Guaranty Corp. to Arch Capital Group Ltd. as Chief Executive Peter Hancock works to simplify his company and free up capital to return to shareholders.

The deal is valued at $3.4 billion including $2.2 billion in cash and the rest in Arch securities, New York-based AIG said Monday in a statement. AIG will retain a portion of mortgage-insurance business originated from 2014 through 2016 through a previously disclosed intra-company risk transfer deal.

“This transaction maximizes UGC’s value while further streamlining our organization,” Hancock said in the statement. “The deal also maintains our affiliation with the mortgage-insurance market and its leading company.”

The Arch agreement accelerates AIG’s exit from United Guaranty, which filed in March for an initial public offering in which Hancock’s insurer would have retained a majority stake. AIG sought a valuation of about $4 billion through an IPO, people familiar with the company’s plans said in May. Hancock has been under pressure from activist investors including Carl Icahn, and announced a plan in January to return $25 billion to shareholders over two years with as much as $7 billion coming from divestitures.

The CEO is focusing on improving margins in the property-casualty operations that are the core of AIG. The New York-based company also offers life insurance and retirement products.

The non-cash portion of the Arch deal includes $975 million in non-voting preferred equity that is convertible into about 9 percent of Arch’s common stock, according to the statement. Also, Arch agreed to turn over $250 million in perpetual preferred stock, though AIG has the option to receive up to that sum in pre-closing dividends instead.

AIG’s mortgage-guaranty business, led by CEO Donna DeMaio, contributed $350 million of pretax operating income this year through June 30, compared with $302 million in the first six months of 2015. Separate AIG units accrued commissions of $113 million last year from United Guaranty in the risk-transfer deal, according to a prospectus.

“AIG will continue to be a participant in the residential real estate market” through direct ownership of mortgage loans, a portfolio of structured securities, the holding of Arch stock and continued ties to United Guaranty, Hancock said in a note to employees Monday, calling the deal a “milestone.” Arch CEO Dinos Iordanou said in a statement that his company and United Guaranty have “led the market” with pricing models and data analytics.

Subscribe Now

Access to a full range of industry content, analysis and expert commentary.

30-Day Free Trial

No credit card required. Access coverage of the securitization marketplace, including breaking news updated throughout the day.