Spain became a member of the European Economic Community ( now called European Union , or EU ) in 1986 , hastening the country 's modernization .
Spain had previously been excluded from membership because it was not sufficiently modernized .