For decades, General Electric was happy to reap the enormous profits that arose from its finance arm as it swelled into one of the country’s biggest lenders.

But as banking has become a less profitable and riskier business, G.E. will complete a transformation it began amid the tumult of the financial crisis: selling off most of that division over the next two years.

Beginning by selling $26.5 billion worth of real estate assets, G.E. is hastening to return to its roots as one of the mightiest industrial companies in the world, whose operations include jet engines, oil drilling equipment and medical devices. What it will mostly shed is GE Capital, a lender with hundreds of billions of dollars’ worth of assets.

The move announced Friday reflects the shifting landscape of the financial world, especially for the largest players. They face greater regulatory scrutiny and calls from analysts and investors to slim their operations or break up. Some are shifting their focus to areas like wealth management as traditional activities like trading prove less profitable. It is no surprise that G.E. decided to re-evaluate its role in this ecosystem.