The gland that produces oil used for cleaning and waterproofing a bird's feathers is called the preen gland, or uropygial gland. Located at the base of the tail, it secretes an oily substance that the bird spreads over its feathers with its beak. The oil keeps feathers in good condition, protects them from water, and provides insulation.