A common mistake: Today, Spain is a constitutional monarchy. King Juan Carlos I, the current monarch, is Head of State. The Head of Government (Prime Minister) has the official title of President of the Government.
In relation to Zapatero's unusual, not to say inappropriate, tweet in support...