The collection of cord blood occurs right after the baby is delivered and the umbilical cord is clamped and cut. The remaining blood in the cord and placenta is then collected using a sterile needle and bag. The process takes only a few minutes and is painless for both mother and baby.