One way they make sounds is by rubbing one of their hind legs, which has rows of pegs on the inside, against the stiff outer edge of their wing. These sounds are produced in order to find a mate and protect their territory. Grasshoppers can also make loud snapping or cracking sounds with their wings as they fly.