One of the best sources of inspiration is to research medieval castles. Take a look at how they were built, what they were used for, how they were defended and how they were attacked. That knowledge can serve as the foundation for your own beautiful fantasy castle.