The normal function of the TREX1 gene is to provide instructions for making the 3-prime repair exonuclease 1 enzyme. This enzyme is a DNA exonuclease, which means it trims molecules of DNA by removing DNA building blocks (nucleotides) from the ends of the molecules. In this way, it breaks down unneeded DNA molecules or fragments that may be generated during genetic material in preparation for cell division, DNA repair, cell death, and other processes. Changes (mutations) to the TREX1 gene can result in a range of conditions, one of which is RVCL. The mutant TREX1 protein is produced and mislocalized. Haploinsufficiency of TREX1 does not explain the disease, since the parents of patients with Aicairdi-Goutieres syndrome, a disease characterized by insufficient TREX1 activity, are completely healthy with only one functional TREX1 allele. Different mutations in the TREX1 gene have also been identified in people with disorders involving the immune system. These disorders include a chronic inflammatory disease called Aicardi-Goutieres syndrome, as well as systemic lupus erythematosus (SLE), including a rare form of SLE called chilblain lupus that mainly affects the skin. Those diseases, which are inflammatory, may have a completely distinct mechanism compared with that of RVCL. The TREX1 gene is located on chromosome 3: base pairs 48,465,519 to 48,467,644

Pathogenesis
The main pathologic process centers on small blood vessels that prematurely "drop out" and disappear. The retina of the eye and white matter of the brain appear to be among the most sensitive to this pathologic process.
Diagnosis can often be difficult because of the rareness of ECD as well as the need to differentiate it from LCH. A diagnosis from neurological imaging may not be definitive. The presence of symmetrical cerebellar and pontine signal changes on T2-weighted images seem to be typical of ECD, however, multiple sclerosis and metabolic diseases must also be considered in the differential diagnosis. ECD is not a common cause of exophthalmos but can be diagnosed by biopsy. However, like all biopsies, this may be inconclusive. Video-assisted thoracoscopic surgery may be used for diagnostic confirmation and also for therapeutic relief of recurrent pericardial fluid drainage. Histology
Histologically, ECD differs from Langerhans cell histiocytosis (LCH) in a number of ways. Unlike LCH, ECD does not stain positive for S-100 proteins or Group 1 CD1a glycoproteins, and electron microscopy of cell cytoplasm does not disclose Birbeck granules. Tissue samples show xanthomatous or xanthogranulomatous infiltration by lipid-laden or foamy histiocytes, and are usually surrounded by fibrosis. Bone biopsy is said to offer the greatest likelihood of reaching a diagnosis. In some, there is histiocyte proliferation, and on staining, the section is CD68+ and CD1a-. Treatment
Current treatment options include:

Surgical debulking
High-dose corticosteroid therapy
Ciclosporin
Interferon-α
Chemotherapy
Vemurafenib. It would appear that approximately half these patients harbor point mutations of the BRAF gene at codon 600 substituting the amino acid glutamine for valine. Vemurafenib, an oral FDA approved targeted agent to the BRAF protein for melanoma, shows dramatic activity in patients Erdheim–Chester disease whose tumor contains the same mutation. In 2017 the US FDA approved vemurafenib for this indication.