The amniotic sac has two layers, which have two different jobs. The inside layer holds in the fetus and the amniotic fluid. The outside layer attaches to the umbilical cord, so that blood and oxygen from the mother can get through the amniotic sac and to the fetus.