Another way to say "A zipper is used to fasten pants." is "Pants may be fastened with a zipper."