When you go to the bathroom on a boat where does it go?

Typically sewage is pumped into a waste water tank, but on smaller boats with a head, it can be ejected into the water.