Where Did Knights Live?

Knights lived in the castle with the king so they would be ready to defend them and any damsels in distress that may be around. The squires who helped the knights with their armor lived over the stables.