I was not suggesting that you were trying to avoid taxes in the UK, but merely pointing out that despite any inheritance tax liability you have in Spain, you will still remain under UK inheritance tax legislation and be liable for UK inheritance tax on your worldwide assets.
Relief for tax paid in Spain is available under the double taxation treaty, but the interaction between the two is a complicated matter and as Maria
has suggested is best dealt with by an expert either in Spain or the UK.
However I would warn that in the UK this advice does not come cheap
with typical fees of about £ 200 – £ 300 per HOUR.
( A Chartered Accountant)