Ducks have a unique gland near their tails called the uropygial gland, which produces an oil that they spread over their feathers using their beaks. This oil acts as a natural waterproofing agent, allowing ducks to stay dry while swimming. It forms a protective layer that prevents water from soaking into their feathers.