Then-interim Prime Minister Pedro Sanchez speaks in Madrid.

Pedro Sanchez was elected Spain’s prime minister last week in a parliamentary investiture that represents a validation of his high-risk gamble to call early elections that he was widely expected to lose. But the win comes after weeks of massive protests that reflect why this is his most controversial victory to date.