Early in development, two endocardial tubes form on either side of the embryo. These tubes migrate towards each other and fuse to create a single, primitive heart tube. This process, known as lateral folding, occurs around the third week of gestation. The heart tube is the precursor to the adult heart chambers and major blood vessels.