What causes clay like stool in babies?

Lack of fluid in babies body or compacted poop