It was internationally recognized in 1991.
In the Middle Ages and early modern era, religious antagonism towards Europe’s Jews resulted in anti-Jewish legislation, expulsions, and violence. In much of Europe, government policies, customs, and laws segregated Jews from the rest of the population, relegated them to particular jobs,and prohibited them from owning land.
Napoleon had invaded Spain proving how weak it was, leading country's to revolt after years of discontent.