Kings and Queens did live in castles but not all castles had a king or queen living in them.
The cooks
When the King is away no one would look after the castle
Pages left their family and moved in a lord's or king's castle.
The person that controlled the medieval castles were the kings and queens. But the king and queen didn't like living in the castle for it was to crowded, so they would put the baron in charge while they were in their manor.
They either were the king and queens heir. Peasants who needs protection and gives some of what they make to the king. (i.e. if you have crops you give some of it to the king as a payment for him protecting you.) Some peasants will be servants too and they repay their lord by working for them. Knights if they protect the lord's castle. Some of the knights get paid by the lord giving them fiefs in return the knights will protect the castle/fight for the lord.
the lord and knights sometimes the king would obviously and his lady.
On The Top Of The King And Queens Castle.
was the responsibility af a baron in the middle ages
There were many people in a royal family in medieval times. These were the king, queen, prince, princess, queen mother, regent, clergy, nobility, and tradesmen and merchants.
you keep on walking around.
a king or queen would hold a medieval banquet at their castle or house
All of them lived in several castles.