This temple was originally in Egypt near the Nile. The construction of a dam back in the 60's threated it and other sites. A UN group - including Spain - worked against the destruction of such a rich historical site. According to the literature, as a gift of gratitude for saving the site, the temple was given to Spain and it was rebuilt in Madrid. Sounds to me like Egypt said, "Here you want it so bad, take it and let us build our damn dam..."