The endoderm primarily gives rise to the lining of the digestive tract and the respiratory system. This includes the epithelial lining of the gastrointestinal tract, liver, pancreas, lungs, and other associated organs. Additionally, the endoderm contributes to the formation of the thyroid and parathyroid glands, as well as the thymus.