Spain's central bank today warned of financial risks from the Catalonia region's potential secession from Spain, days ahead of an election there framed as an indirect vote on independence. 

Bank of Spain governor Luis Linde said Catalonia would drop out of the euro zone if it broke away from Spain and would lose access to credit from the European Central Bank. 

He followed European leaders, businesses and big commercial banks in warning of the financial risks of secession for the rich but heavily indebted northeastern region. 

Nationalist leaders in Catalonia have vowed to declare independence within 18 months if they win the vote on September 27. 

"Leaving the European Union means automatically leaving the euro zone," so banks in Catalonia would "stop having access to the ECB's facilities", he said. 

He said there was a risk, albeit a "highly unlikely" one, that Catalonia would end up having to impose banking restrictions as Greece did in June at the height of its debt crisis. 

The latest opinion polls show separatist parties could win a majority in the Catalan regional parliament on September 27. 

The independence drive has intensified over the recent years of economic crisis. Catalans complain about how much of their tax money is redistributed to the rest of Spain. 

Their vows to secede have posed a tough political challenge to the conservative central Spanish government.

 It is looking to strengthen Spain's economic recovery and preparing to fight a general election in December.