Catalan declaration of independence
On 27 October 2017, a resolution based on the "Declaration of the representatives of Catalonia" declaring the independence of Catalonia was voted in the Parliament and was approved with 70 votes in favor, 10 against, and 2 blank votes. Fifty-three MPs from the opposition refused to be present during the voting after the legal services of the Catalan Parliament advised that the voting could not take place, as the law on which it was based had been suspended by the Spanish Constitutional Court. The two pro-independence parties, JxSí and CUP, had 72 seats, and the vote in favour of independence obtained 70.
2017–18 Spanish constitutional crisis
On 27 October, the Catalan parliament voted in a secret ballot to unilaterally declare independence from Spain, with some deputies boycotting a vote considered illegal for violating the decisions of the Constitutional Court of Spain, as the lawyers of the Parliament of Catalonia warned. As a result, the government of Spain invoked the Constitution to remove the regional authorities and enforce direct rule the next day, with a regional election being subsequently called for 21 December 2017 to elect a new Parliament of Catalonia. Puigdemont and part of his cabinet fled to Belgium after being ousted, as the Spanish Attorney General pressed for charges of sedition, rebellion and misuse of public funds against them.