Their supplies were cut off in a few-month long siege. Diggers tunneled under the wall. People broke through the wall. Dead bodies were flung into the castle to cause disease. Least often (almost...
It was mostly kings and queenshow attacked castles because if they have the castle then they will hsve the land and also they like castles and often stay in them because it makes them feel powerful.