Another way to say "denim is used for making jeans" is "Jeans are made out of denim."