Spain's CaixaBank has sold a 3.7 percent stake in Carlos Slim's Grupo Financiero Inbursa to the Mexican magnate's family for 387 million euros ($512 million).

The sale of the stake to Inmobiliaria Carso netted the Barcelona-based financial institution a capital gain of 33 million euros ($43.6 million).

In a regulatory filing, CaixaBank said it planned to sell off an additional stake through placements among Mexican and international investors, with an eventual goal of reducing its Inbursa holding to a minimum of 9 percent.

CaixaBank, which had announced last month that it was mulling the possibility of selling half of its stake in Carlos Slim's financial company, reiterated its commitment to Inbursa and to that group's main shareholders. EFE