Complex sentence: The Csejte Castle was built in thirteenth century, on top of a hill, at the foot of which stood the village of Csejte, which lends its name to the castle.
Split into simpler sentences: The Csejte Castle was built in the thirteenth century on top of a hill. At the foot of that hill stood the village of Csejte, which lends its name to the castle.