Meconium ileus is caused by buildup of the thick, sticky stool that is the baby's first stool, blocking off the end of the small intestine. This occurs because the mucus and stool in patients with cystic fibrosis is thick.