Based on the short story with the same name "The Circular Ruins" of Jorge Luis Borges - a masterpiece of surrealism or magic surrealism.