The castle was built on the mountaintop, commanding a view from above.
Tips
usage
居高临下 originally was a military term (occupying high ground). In modern Chinese, it's more often used negatively to criticize someone's arrogant, condescending manner — 别用居高临下的口气跟我说话 ('Don't talk to me in that condescending tone').