Anbang Insurance Group Co. agreed to sell a luxury hotel portfolio to South Korea’s Mirae Asset Management Co., marking the end of the Chinese insurer’s short-lived investment in the properties.

Mirae posted a 10% deposit this week on a sale price of a little more than $5.8 billion for the portfolio, according to a person familiar with the matter who asked not to be named because the details are private. The parties were nearing a sale last month, as Bloomberg News reportedat the time. Irregularities in the deeds to some of the properties delayed the sale, according to the Wall Street Journal.

Mirae signed a deal to buy 15 hotels from Anbang, it said in a statement that did not disclose the purchase price. JLL Hotels & Hospitality acted as the buy-side valuation and financing adviser for Mirae, while Bank of America Merrill Lynch acted as financial adviser to Anbang on the sale, according to a statement from JLL.

Anbang bought the properties’ owner, Strategic Hotels & Resorts Inc., from Blackstone Group Inc. for about $5.5 billion in 2016. The deal was part of a global buying spree that made Anbang emblematic of China’s unbridled appetite for international trophy assets. That era ended when Chinese authorities seized control of Anbang and later sentenced Chairman Wu Xiaohui to 18 years in prison.

The properties include the Westin St. Francis in San Francisco, the Loews Santa Monica Beach Hotel, the JW Marriott Essex House in New York and the Four Seasons in Jackson Hole, Wyoming. Separately, Anbang still owns the famed Waldorf Astoria hotel in Manhattan from a $1.95 billion deal in 2015.

(Updates with Mirae and JLL statements in third paragraph.)