What Were Catapults Used for?

Catapults were used to launch weapons. Weapons that were used were often boulders and even flaming piles of stuff that could ingnite buildings. Catapults were used so they could attack their enemies from a distance.