Business people shaking hands

Investment bank Morgan Stanley announced it would buy the online brokerage E-Trade for roughly $13 billion, one of the biggest deals on Wall Street since the financial crisis.

The deal also is the latest chapter in Morgan Stanley’s transformation from the scrappy, deal-doing, stock-trading investment bank to a more well-rounded financial firm now more reliant on its asset and wealth management businesses.

According to the terms of the all-stock deal, E-Trade shareholders will receive 1.0432 Morgan Stanley shares for each share they own. E-Trade CEO Mike Pizzi will continue to run the firm once it becomes a division within Morgan Stanley.

Under CEO James Gorman, Morgan Stanley has shifted into new, more universal financial services that can bring in steady revenue when the more traditional parts of the bank’s business — trading and advising clients — slow down or suffer in difficult markets.

The strategy has worked. Morgan Stanley’s income has been less volatile, and the bank has been consistently hitting its profitability goals, and the bank had record profits last year.

“E-Trade represents an extraordinary growth opportunity for our wealth management business and a leap forward in our wealth management strategy,” Morgan Stanley Chairman and CEO James Gorman said in a prepared statement

Discount brokers like E-Trade have engaged in a vicious fight for customers since late last year, when Charles Schwab Corp. announced that it would eliminate the fees it charges customers for trades. Weeks later, Charles Schwab and TD Ameritrade Holding Corp. said they would merge, creating a massive rival for E-Trade.

Morgan Stanley will acquire E-Trade’s $360 billion in assets and 5.2 million customers as part of the merger, which Morgan Stanley can then turn around and use to start making loans. E-Trade has a popular online platform that helps businesses manage their employee stock plans, which will be merged into Morgan Stanley’s existing platform as well.

The deal is expected to close in the fourth quarter of this year, if regulators and shareholders approve it.