The Spanish Inheritance and Gift Tax (Ley 29/1987) is the responsibility of the Spanish regional governments (Comunidades Autónomas).
According to this law, who is resident in Spain (183 days rule) is liable for this Tax for all the assets inherited, regardless of where they are located.