Bilge water is not exactly water but a mixture of variety of substances. Its a mixture of fresh water, sea water, oil, sludge, chemicals and various other fluids.
So where does all these substances come from?
Sea water and fresh water can find its way to the bilge wells due to leakage in the pipe lines, leaky pump and valve glands, from machinery, propulsion system, over flowing of tanks and even due to accidental spills. All these substances get accumulated in the bilge wells and the mixture formed is known as bilge water.
A significant amount of sea water can seep into the bilge well if there is a leakage in the shaft gland or stuffing box. Sea water can also enter from leaky main sea chest valves. Fresh water from heat exchangers, fresh water generator and boilers often contribute to the filling of bilge wells. Oil finds it way to the bilge well mainly from the fuel oil purifiers, leakage in fuel line and oil spills.

click to enlarge