Cancer Lymphoma An Overview of the Thymus Gland Playing a role in immunity, autoimmunity, and aging By Lynne Eldridge, MD Lynne Eldridge, MD Facebook Lynne Eldrige, MD, is a lung cancer physician, patient advocate, and award-winning author of "Avoiding Cancer One Day at a Time." Learn about our editorial process Updated on September 13, 2022 Medically reviewed by Doru Paul, MD Medically reviewed by Doru Paul, MD Doru Paul, MD, is board-certified in internal medicine, medical oncology, and hematology. Learn about our Medical Expert Board Print The thymus gland is the body organ that took scientists the longest time to understand. It's only active from when you're born until you become a teenager. Still, it plays a huge role in training your body to fight infections and even cancer for the rest of your life. It's also vital to the body's chemical messaging or endocrine system. Read on to learn more about the role of the thymus in immunity, autoimmunity, and aging, as well as how several disorders may affect this important organ. Verywell / Nez Riaz History and Anatomy The thymus gland is usually located behind the breastbone, in front of the heart, and between the lungs. In some people, though, this organ is found in the neck or upper chest. While that may seem odd, it's part of the organ's mystery that has baffled scientists for centuries. Researchers only began to understand some of the gland's function about 50 years ago. They still aren't sure where it got its name. Some experts say the ancient Greeks, who discovered the organ, named it thymus because its shape looks like the leaves of thyme, a cooking herb. Others say the name came from the Greek word for the soul because the organ is near the heart. Either way, the thymus gland is considered an immune system organ. Like your tonsils and adenoids, it helps fight infections. The thymus gland. Cells of the Thymus Unlike your heart or lungs, what the thymus gland does isn't apparent. Its job involves a lot of tiny chemical processes. Inside the thymus gland, there are many different cells. These include: Epithelial cells line all body surfaces and act as a protective barrier. Kulchitsky cells make hormones, chemical messengers for the thymus and other cells. Thymocytes are cells that become mature T lymphocytes, specialized infection fighters. Dendritic cells are found in the skin and other tissues. They help protect against toxins and other foreign substances. Macrophages are cells that are sometimes called the "garbage trucks" of the immune system. They eat foreign matter and clear away tumors. B lymphocytes are cells that make antibodies, proteins that attack viruses and bacteria. Myoid cells are muscle-like cells. Scientists believe they trigger the autoimmune response in a muscle disorder. This list hints at how complex the thymus gland's job is. Its role also changes throughout your life. Changes With Age The famous Greek philosopher-surgeon, Galen, was the first to notice that the thymus gland changes with age. Galen wrote that it's large in newborn animals and becomes smaller when they're adults. Your thymus gland reaches its maximum size when you're a teenager. Then, it starts to shrink slowly. By the time you turn 75 years old, your thymus gland turns to fat. The term scientists use to describe this organ shrinking process is called involution. Doctors also know that severe stress can cause the thymus to shrink. In fact, during the early part of the 20th century, researchers didn't believe the thymus was larger in infants. When they did autopsies on babies who had died from conditions like diphtheria, it had shrunk. Function From the time you're conceived until you reach puberty, your thymus gland is very active. It serves both the immune and endocrine systems. That's the system that makes hormones, the body's chemical messengers. To understand the thymus' immune system role, you need to know the difference between two kinds of white blood cells. They are the T lymphocytes (T-cells) and B lymphocytes (B-cells). These cells are like the immune system's "special ops" forces. T Cells vs. B Cells T-cells are also known as thymus-derived lymphocytes. They help fight off the body's foreign invaders, such as bacteria, viruses, and toxins. They can also identify and attack cancer cells. B lymphocytes, or B-cells, have a different role. They produce proteins called antibodies and use them to destroy specific invaders. T Cell Training Ground When the immune system's first responders and defenders need extra help, they call in the T-cells. They're made in the bone marrow, the spongy tissue within your bones. When T-cells are young or immature, they travel through the bloodstream and into the thymus gland. The thymus has two lobes. One houses a sort of "boot camp" training ground for T-cells. That's where they mature and turn into specialty disease-fighting cells with different jobs. Types of T-Cells T-cells in the thymus turn into three main immune system disease fighters: Cytotoxic T-cells: These cells are responsible for directly killing infected cells. Helper T-cells: These cells get the B-cells to make antibodies. They also prime the T-cells and get them to attack foreign invaders. Regulatory T-cells: These cells function as "police." They suppress both B-cells and other T-cells if they are mistakenly harming the body. Positive and Negative Selection The part of the thymus called the cortex is where the T-cell boot camp training is held. Here, young T-cells learn to identify antigens or toxins linked to foreign cells and matter. This process is called "positive selection." Once the T-cells recognize specific pathogens, they travel to another part of the thymus gland called the medulla. Here, they get a different kind of training, "negative selection." They're introduced to the body's antigens, so they don't attack and harm them. This prevents autoimmune disorders. These are medical conditions where things go wrong, and your cells attack your body tissues and cells instead of foreign invaders. Not all T-cells make it through this selection process. Only about 2% eventually make it through both positive and negative selection. Next, the survivors get exposed to hormones produced by the thymus gland to complete their training. Then they are released to do their job. Roles of Mature T-Cells These highly trained cells circulate in the bloodstream or wait in the lymph nodes until the immune system sounds an alarm. Mature T-cells play some vital roles. Immunity T-cells are part of the body's adaptive immunity system. That's immunity your body develops after your immune system has been exposed to an infection, vaccine, or foreign substance. T-cells are trained to recognize and take out foreign threats that get past the body's first line of defense. When killer cytotoxic T-cells recognize a foreign invader, they lock onto the cell and destroy it with the aid of helper and regulatory T-cells. This is what's known as cell-mediated immunity, or using immune cells to fight infections. Autoimmunity The process of negative selection occurs in the thymus. It is used to get rid of T-cells that have become overly reactive and have bound too strongly to other molecules. The weed-out process clears T-cells that might attack the body's own tissues and cells. This prevents the development of autoimmune disorders. Aging Scientists used to believe that aging was just the body wearing out. They now realize that aging is an active chemical process. Some scientists believe the shrinking of the thymus may be what triggers the aging process. As the thymus shrinks, your immunity decreases. That's why older people are more likely to get sick or get diseases like cancer. They're also less likely to respond to vaccines. Studies are now looking at ways to delay the thymus shrinking, boost immunity, and slow the aging process. This line of research is very new. In one small study of nine healthy men, researchers used a growth hormone, steroids, and a diabetes drug to reboot the thymus. For over two years, they did blood and imaging tests of the men. They also measured their epigenetic ages. That's how old the body is based on biology. The men were between 51 and 65 years old, The researchers say after one year, the men had more T-cells and stronger immune systems. Based on biology, their bodies were also about 2.5 years younger than their chronological ages. Hormone Production The thymus gland produces several hormones, including: Thymopoietin and thymulin: These hormones are involved in the process where T cells get turned into different types of disease fighters.Thymosin: This hormone boosts the immune system's response. Thymosin also stimulates hormones that control growth.Thymic humoral factor: These hormones increase the immune system's response to viruses. The thymus gland also makes small amounts of hormones produced in other areas of the body. These include melatonin, which helps you sleep, and insulin, which helps control your blood sugar. Associated Conditions Many conditions can affect the thymus gland, ranging from genetic disorders to cancers in older adults. These can lead to problems with immunity and autoimmunity. Absent or Underdeveloped Thymus DiGeorge syndrome is a rare developmental disorder in which the thymus gland is underdeveloped or absent. It is caused by a gene mutation. Children with complete DiGeorge syndrome have no thymus gland. This leads to a dangerous deficiency in T-cells. Complete DiGeorge syndrome is treated with a thymus tissue transplant. Children with partial DiGeorge syndrome have an underdeveloped thymus and low T-cell count. Partial DiGeorge syndrome often improves as the child gets older. DiGeorge syndrome can cause serious immune system problems and a high risk of infections. Children with the condition also have problems with their thyroids or hypoparathyroidism. Thymic Follicular Hyperplasia With this condition, the thymus becomes swollen and inflamed. This can occur in autoimmune disorders such as: Lupus: In people with this condition, the immune system attacks the joints, skin, kidneys, blood cells, brain, heart, and lungs. Erythematosus: This condition causes the immune system to attack connective tissue. Myasthenia gravis (MG): With MG, the immune system attacks the musculoskeletal system (see more on MG below). Rheumatoid arthritis: In people with this condition, the immune system attacks the joints. Graves' disease: Graves' disease causes the immune system to attack the thyroid gland. Sjogren's syndrome: This condition causes the immune system to attack the cells that make saliva and tears. Thymic Cysts Cysts are abnormal growths filled with liquid. They're tiny, less than 3 centimeters (cm). They're usually not a problem. Thymus gland cysts are often only found when a doctor is treating you for something else. An example is screening for lung cancer. In rare cases, thymic cysts can hide cancer. Tumors of the Thymus Gland Thymomas are tumors that occur within the thymus gland. They can be harmless or cancerous. They can also occur in the neck, thyroid gland, or lungs. Other tumors that may occur in the thymus include thymic lymphomas, germ cell tumors, and carcinoids. Symptoms of thymomas often depend on the location of the cancer. For example, ones in the chest might cause shortness of breath. Doctors may discover these tumors because a patient has developed what's known as paraneoplastic syndromes. These rare autoimmune disorders occur when T-cells try to fight off a certain kind of cancer tumor. The cells mistakenly attack parts of the brain, spinal cord, nerves, and muscles. There are several of these types of conditions: Myasthenia gravis (MG): This is a condition where your muscles weaken and tire, and you lose your ability to control them. This autoimmune condition occurs in up to 25% of people with thymomas.Pure red cell aplasia: This is a condition where your T-cells attack young red blood cells. This causes severe anemia, a lack of oxygen-carrying red blood cells. It occurs in roughly 5% of people with thymomas.Hypogammaglobulinemia: This is a condition where the B-cells don't make enough antibodies. It occurs in roughly 10% of people with thymomas. Thymomas may also cause a condition referred to as thymoma-associated multiorgan autoimmunity. This condition is similar to the rejection seen in some people with organ transplants. In these cases, the tumor produces T-cells that attack a person's body. Thymectomy Surgeons may remove the thymus gland, a thymectomy, under certain conditions. One reason is a baby is born with a heart problem. The thymus is near the heart and large in babies. So surgeons have to remove it to operate on a baby's heart. Surgeons might also remove the thymus if there's cancer in it or if you are diagnosed with myasthenia gravis. Studies show that roughly 60% of people with myasthenia gravis go into remission when their thymus gland is removed. The surgery is usually done between puberty and middle age to avoid the potential consequences of removing the thymus gland too early in life. Consequences of Thymus Removal The thymus gland is important because it trains the immune system to fight infections. Much of this training occurs before birth. However, studies have linked removing the thymus in infants to an increased risk of infections and autoimmune disorders. The children also have an increased risk of thyroid disease, asthma, allergies, and possibly cancer. This is because the T-cells play a vital role in preventing cancer. There is also some evidence that removing the thymus can cause early aging of the immune system. Summary The thymus gland plays a vital role in training the immune system to protect the body against infections, even cancer. This process begins when you're conceived. The thymus gland reaches its maximum size when you're a teenager. Then it starts to shrink slowly. Some scientists believe the natural shrinking of the thymus gland triggers the aging of the immune system. That's why as we age, we tend to get sick more and respond to vaccines less. Researchers are studying ways to slow the thymus shrinking process. A Word From Verywell Your thymus gland is essential to both your immune and endocrine systems. The microchemical processes it controls are very complex. Researchers didn't have the scientific knowledge to understand many of them until recently. They're still learning. The dramatic rise in autoimmune disorders has increased scientists' interest in the thymus. Even more intriguing is its role in the aging process. So it is very likely we'll learn even more about the thymus gland's functions and proper health in the future. Frequently Asked Questions What is the function of the thymus gland? The thymus gland exists to train our immune system to fight against disease, infection, and cancer. This process begins before birth. The gland continues growing until age 13, after which it very slowly starts to shrink. Where is the thymus gland located? The thymus gland has two possible locations. It is usually found in front of the heart, but in some people, the thymus gland is located in the neck or upper chest. What are the symptoms of thymus cancer? Symptoms of thymus cancer include shortness of breath, a cough (which may include bloody sputum), chest pain, difficulty swallowing, appetite loss, and weight loss. These can be the result of a tumor on the thymus pressing on nearby blood vessels, airways, or the esophagus. 26 Sources Verywell Health uses only high-quality sources, including peer-reviewed studies, to support the facts within our articles. Read our editorial process to learn more about how we fact-check and keep our content accurate, reliable, and trustworthy. Miller JFAP, The discovery of thymus function and of thymus-derived lymphocytes. Immunol Rev. 2002;185:7-14. doi: 10.1034/j.1600-065x.2002.18502.x Crumbie L, Thymus histology. Berlin, Germany: 2017. https://www.kenhub.com/en/library/anatomy/histology-of-the-thymus. Laios K. The thymus gland in ancient Greek medicine. Hormones. 2018;17(2):285-286. Gruver AL, Sempowski GD. Cytokines, leptin, and stress-induced thymic atrophy. J Leukoc Biol. 2008;84(4):915–923. doi:10.1189/jlb.0108025 Cancer Treatment Centers of America. What's the difference? B-cells and T-cells. Thapa P, Farber DL, The role of the thymus in the immune response. Thorac Surg Clin. 2019;29(2):123-131. doi:10.1016/j.thorsurg.2018.12.001 Janeway CA, Travers P, Walport M, Shlomchik MJ. T cell-mediated immunity. Immunobiology: The Immune System in Health and Disease 5th edition. New York. Garland Science. Paúl C, Teixeira L, Ribeiro O. Active aging in very old age and the relevance of psychological aspects. Front Med (Lausanne). 2017;4:181. doi:10.3389/fmed.2017.00181 Fahy GM, Brooke RT, Watson JP, et al. Reversal of epigenetic aging and immunosenescent trends in humans. Aging Cell. 2019;18(6):e13028. doi: 10.1111/acel.13028 Savino W, Dardenne M, Neuroendocrine control of thymus physiology, Endocrine Reviews, 2000 Aug;21(4):412-43. doi:10.1210/edrv.21.4.0402 Shelly S, Agmon-Levin N, Altman A, Shoenfeld Y. Thymoma and autoimmunity. Cell Mol Immunol. 2011;8(3):199–202. doi:10.1038/cmi.2010.74 American Academy of Allergy, Asthma, & Immunology. DiGeorge Syndrome (DGS). Aljabri KS, Bebb RM. DiGeorge's syndrome presenting as hypocalcemia in an adult. Ann Saudi Med. 2005;25(2):173–174. doi:10.5144/0256-4947.2005.173 Xin Y, Cai H, Li Y, Cui Y. Thymic hyperplasia associated with primary Sjogren’s syndrome cured by thymectomy. J Thorac Dis. 2017;9(2):E130-E132. doi: 10.21037/jtd.2017.02.24. Jung W, Cho S, Yum S, Lee YK, Kim K, Jheon S. Differentiating thymoma from thymic cyst in anterior mediastinal abnormalities smaller than 3 cm. J Thorac Dis. 2020;12(4):1357-1365. doi:10.21037/jtd.2020.02.14. Cleveland Clinic. Thymoma and thymic carcinoma. my.clevelandclinic.org/health/articles/6196-thymoma-and-thymic-carcinoma. Padda SK, Yao X, Antonicelli A, Riess J, Shang Y, Shrager J. Paraneoplastic syndromes and thymic malignancies: an examination of the international thymic malignancy interest group retrospective database. J Thorac Oncol. 2018;13(3):436-446. doi:10.1016/j.jtho.2017.11.118. Beydoun SR, Gong H, Ashikian N, Rison RA. Myasthenia gravis associated with invasive malignant thymoma: two case reports and a review of the literature. Journal of Medical Case Reports. 2014;8(1). Okui M, Yamamichi T, Asakawa A, Harada M, Horio H. Pure red cell aplasia associated with good syndrome. Korean J Thorac Cardiovasc Surg. 2017;50(2):119–122. doi:10.5090/kjtcs.2017.50.2.119 Tachdjian R, Keller JJ, Pfeffer M. A bad case of Good's Syndrome. Infect Dis Ther. 2014;3(2):333–337. doi:10.1007/s40121-014-0045-7 Fukushima A, Ichimura Y, Obata S, Kinoshita-Ise M, Fujio Y, Takeno M, et al. Thymoma-associated multi-organ autoimmunity: A case of graft-versus-host disease-like erythroderma complicated by Good syndrome successfully treated by thymectomy. J Dermatol. 2017;44(7):830-835. doi:10.1111/1346-8138.13777 Roosen J, Oosterlinck W, Meyns B. Routine thymectomy in congenital cardiac surgery changes adaptive immunity without clinical relevance. Interact Cardiovasc Thorac Surg. 2015;20(1):101-106.doi: 10.1093/icvts/ivu343. De roxas RC, Bagnas MA, Baldonado JJ, Rivera JP, Roxas AA. Clinical profile and outcome of postthymectomy versus non-thymectomy myasthenia gravis patients in the Philippine General Hospital: A 6-year retrospective study. Front Neurol. 2016;7:96. doi: 10.3389/fneur.2016.00096. Stosio M, Ruszkowski J, Mikosik-Roczyńska A, Haponiuk I, Witkowski JM. The significance of neonatal thymectomy for shaping the immune system in children with congenital heart defects. Kardiochir Torakochirurgia Pol. 2017;14(4):258–262. doi:10.5114/kitp.2017.72231. Griffith AV, Venables T, Shi J, Farr A, Van Remmen H, Szweda L, et al. Metabolic damage and premature thymus aging caused by stromal catalase deficiency. Cell Rep. 2015;12(7):1071-1079. doi:10.1016/j.celrep.2015.07.008. American Cancer Society. Signs and symptoms of thymus cancers. Additional Reading Fahy GM, Brooke RT, Watson JP, et al. Reversal of epigenetic aging and immunosenescent trends in humans. Aging Cell. 2019;18(6):e13028. doi: 10.1111/acel.13028 Gudmundsdottir J, Soderling J, Berggren H, Haponiuk I, Witkowski J, Long-Term Clinical Effects of Early Thymectomy: Associations with Autoimmune Diseases, Cancer, Infections, and Atopic Diseases. Journal of Allergy and Clinical Immunology. 141(6):2294-2297. doi: 10.1016/j.jaci.2018.01.037 Laios K. The thymus gland in ancient Greek medicine. Hormones. 2018;17(2):285-286. Miller JFAP, The discovery of thymus function and of thymus-derived lymphocytes. Immunol Rev. 2002;185:7-14. doi: 10.1034/j.1600-065x.2002.18502.x Thapa P, Farber DL, The role of the thymus in the immune response. Thorac Surg Clin. 2019;29(2):123-131. doi:10.1016/j.thorsurg.2018.12.001 Zdrojewicz Z, Pachura E, Pachura P. The Thymus: A Forgotten, But Very Important Organ. Advances in Clinical and Experimental Medicine. 25(5):369-375. doi: 10.17219/acem/58802 By Lynne Eldridge, MD Lynne Eldrige, MD, is a lung cancer physician, patient advocate, and award-winning author of "Avoiding Cancer One Day at a Time." See Our Editorial Process Meet Our Medical Expert Board Share Feedback Was this page helpful? Thanks for your feedback! What is your feedback? Other Helpful Report an Error Submit