Historically, synagogues were built in the prevailing architectural style of their time and place. Thus, the synagogue in Kaifeng, China looked very like Chinese temples of that region and era, with its outer wall and open garden in which several buildings were arranged. The styles of the earliest synagogues resembled the temples of other cults of the Eastern Roman Empire. The surviving synagogues of medieval Spain are embellished with mudéjar plasterwork. The surviving medieval synagogues in Budapest and Prague are typical Gothic structures.