The brain of planarians consists of two, interconnected cerebral ganglia formed by enlargements of the anterior parts of the ventral nerve cords.