PCT is primarily caused by a deficiency in the enzyme uroporphyrinogen decarboxylase (UROD). This enzyme is crucial in the heme biosynthesis pathway. The deficiency can be either inherited or acquired, meaning that it can be due to genetic factors or influenced by environmental factors such as alcohol consumption, estrogen use, and exposure to certain chemicals.