Question: when were the first castles built in europe?
Answer: 9th and 10th centuries