The 10-in-20 test
If you have been UK resident for at least 10 of the last 20 tax years, your worldwide assets fall within UK inheritance tax; and after you leave the UK, that worldwide exposure can continue for a tail of several years, longer for those who were resident for longer.