Members of the Catalonian Parliament are celebrating after voting overwhelmingly in favour of giving the region a new more autonomous status.
Under the proposals, Catalonia would have greater powers to make laws, raise taxes and control migration.
After months of long, drawn out negotiations, the measure was finally adopted by all parties with the exception of the opposition conservative Popular Party.
It will now be up to the national parliament in Madrid to decide on whether the statute can be enacted.
But amid growing calls for greater regional independence the chances of that are very unlikely, even though Catalonia’s Socialist allies rule.
However the passing of the project will give one of Spain’s richest region’s much more bargaining power when it comes to negotiating how to split the country’s resources.