Six Spanish banks have taken control of troubled real estate company Metrovacesa SA, swapping debt for company shares held by its indebted top holder, the company said Friday.

Spain's Sanahuja family, which owned close to 85% of the country's top property company by assets, agreed in December to swap a 54% stake for €2.09bn in debt. Banks had until Friday to execute the agreement.

Wall Street Journal