Well, taxes in Spain are quite high... So I do not recomend to register you business there, also, getting liscenses and other type of permissions can be a nightmare . Most of the online Casinos that operate in the spanish market are registered in Gibraltar. Check out the liscense of Codere and where is registered.