An imperial castle was a very big and fancy house built a long, long time ago by really important people who ruled over a big group of other people. It was like a home for the "king" or "queen" of that place where they could live with their family and have important meetings with other important people.
The castle had many rooms with fancy furniture and decorations like big chandeliers and pretty carpets. Some of these rooms were used for sleeping, others for eating, and there were even special rooms for people to talk with the king or queen.
The castle also had high walls all around it to keep the important people safe from any danger. And sometimes there were even soldiers guarding the entrances to make sure only the right people could come in.
So basically, an imperial castle is a fancy, big house where very important people used to live a very long time ago, and it was all meant to keep those important people safe and make sure they could do their important job well.