Black poop can be due to eating some dark food.
But it also could be due to a bleeding ulcer. If your poop continues to stay black and you haven't ate anything that could cause it then you might want to see a doctor to be sure it's nothing more serious.
Although most times black poop is nothing to worry about.