In the gastric mucosa (especially in corpus, fundus) thermolabile, water-soluble glycoprotein formed by the supporting cells, which is associated with vitamin B12 forms a complex and thus enables B12-absorption in the lower small intestine.
https://de.wikipedia.org/wiki/Intrinsischer_factor (Wikipedia CC-by-sa-3.0)