Spain's conservative government has reacted angrily to a visit to Cuba by former Socialist Prime Minister Jose Luis Rodriguez Zapatero and his unannounced meeting with Cuban President Raul Castro.

Foreign Minister Jose Manuel Garcia Margallo said Thursday the visit by Zapatero and former Foreign Minister Miguel Angel Moratinos was "disloyal" and "inopportune."

Cuba's Foreign Ministry said Zapatero and Moratinos met Wednesday with Castro and Foreign Minister Bruno Rodriguez.

The government had been told the two would make a private visit, but wasn't aware they would meet with Castro.

Zapatero, who was premier between 2004 and 2011, will hold a news conference in Havana later Thursday.

The visit comes as both the U.S. and the European Union work to establish a new framework for relations with Cuba.