text: The ileum () is the final section of the small intestine in most higher vertebrates, including mammals, reptiles, and birds. In fish, the divisions of the small intestine are not as clear and the terms posterior intestine or distal intestine may be used instead of ileum. Its main function is to absorb vitamin B12, bile salts, and whatever products of digestion that were not absorbed by the jejunum.