The European Commission cleared on Wednesday the restructuring of four Spanish banks -- Bankia, NCG Banco, Catalunya Banc and Banco de Valencia -- as part of a major overhaul of Spain\'s stricken banking sector. The Commission said the restructuring of the four banks \"will allow them to become viable in the long-term without continued state support\" while the plans contain provisions to limit distortions to competition. Banco de Valencia, whose independent future could not be secured, will be sold and integrated into CaixaBank, the Commission said in a statement. Spain secured funding of up to 100 billion euros from its eurozone partners in June to help rescue its banks, brought to their knees by a mountain of bad debt built up in a property bubble which burst in 2008. At that stage it looked as though Spain might need a full, sovereign debt bailout accord on top, but since then Madrid has weathered the storm and Prime Minister Mariano Rajoy has resisted pressure to ask for further help. \"The approval ... is a milestone in the implementation of the (accord) ... Our objective is to restore the viability of banks receiving aid so that they are able to function without public support in the future,\" European Competition Commissioner Joaquin Almunia said in the statement. \"Restoring a healthier financial sector capable of financing the real economy is indispensable for economic recovery in Spain\" Almunia added. Spanish Finance Minister Luis De Guindos said on Monday that the first payment to recapitalise the banking system would be about 37 billion euros ($50 billion), expected in December. The Commission said that Bankia, the giant group at the the heart of Spain\'s financial crisis and already bailed out by Madrid, would receive 36 billion euros in all when the eurozone programme is also taken into account. NGC would get 10 billion euros, Catalunya Banc 14 billion euros and Banco de Valencia 7.0 billion euros. Almunia told a press conference that the programme should ensure that taxpayers \"get an adequate return for this effort\" in due course, touching on a sensitive political issue running through the bailout plans. The Commission said that the balance sheets of Bankia, NCG Banco and Catalunya Banc would shrink by more than 60 percent by 2017 compared with 2010, highlighting how over-extended the banks had become. The banks henceforth will focus on their \"historical core regions. They will exit from lending to real estate development and limit their presence in wholesale business,\" it said. Notably, the fact that the banks and their shareholders are absorbing part of the losses means the overall state aid needed will be reduced by about 10 billion euros, it added. Wednesday\'s decision clears the way for the banks to receive aid from the European Stability Mechanism (ESM), the new eurozone defence system which formally became operational last month. The four banks concerned on Wednesday had all previously received help from Spain\'s Fund for Orderly Bank Restructuring (FROB) and it is this body which will channel the ESM funds to them.