The black sludge in drain pipes is bacteria that's clinging to waste in your drain lines. It can cause a variety of problems, such as clogged drains and an increase in water bills.