There was a crisis that came up in October 2017, which was all about Catalonia separating from Spain. This has actually been a very big political crisis in Spain since democracy was restored to the country in 1975. This was after the death of General Francisco Franco, a military dictator then.
Catalonia is actually a place that was claimed to be existing for about a thousand years now. It is a location from which the most productive and wealthiest part of Spain is being produced. In 2006, Catalonia earned a stature, being granted a greater power with a high boost in financial strength, which made them be referred to as a nation.
Much of these were actually reversed by the constitutional court of Spain in 2010. Local separatism and resentment were also encouraged in the local areas of Spain due to a financial crash that happened in the country in the year 2008. However, Catalonia getting freedom from Spain widely depends on how tactical and forceful Catalonia can go, and how willing Spain is. But I don't see the freedom happening anytime soon, if ever.