ARPKD is caused by mutations in the PKHD1 gene, which codes for a protein called fibrocystin/polyductin. This protein is essential for normal kidney and liver function. ADPKD, on the other hand, is primarily caused by mutations in either the PKD1 or PKD2 genes, which code for polycystin-1 and polycystin-2 proteins, respectively.