The owners of Stuyvesant Town and Peter Cooper Village, the iconic middle-class housing complexes overlooking the East River in Manhattan, have decided to turn over the properties to creditors, officials said Monday morning.

The decision by Tishman Speyer Properties and BlackRock Realty comes four years after the $5.4 billion purchase of the complexes’ 110 buildings and 11,227 apartments in what was the most expensive real estate deal of its kind in American history.

The surrender of the properties, first reported by the Wall Street Journal, ends a tortured real estate saga that saw the partnership make expensive improvements to the complex and then try to rent the apartments at higher market rates in a real estate boom. But a real estate downturn and the city’s strong rent protections hindered those efforts, leaving the buyers scrambling to make payments on loans due for the properties, which have been a comfortable harbor for the city’s middle class since they opened in the late 1940s.

“We have spent the last few weeks negotiating in good faith to restructure the debt and ownership of Stuyvesant Town/Peter Cooper Village,” said the statement by the partnership. “Over the last few days, however, it has become clear to us through this process that the only viable alternative to bankruptcy would be to transfer control and operation of the property, in an orderly manner, to the lenders and their representatives.”