What causes dark urine with bubbles on top?

Several items. Dark urine could represent dehydration with concentrated urine. It could also represent blood in the urine or even abnormalities of liver function causing jaundice. Frothy urine with bubbles often represents increased phosphate levels and is rarely significant.