Spain's government has successfully acquired the 10% stake in Telefonica it had planned to purchase since December last year, the state-owned holding firm SEPI said Monday.