What weapons were used to attack castles?

Catapults