Adeno-associated virus (AAV) vectors are a well-established gene transfer approach for rare genetic diseases. Nonetheless, some tissues, such as bone, remain refractory to AAV. X-linked hypophosphatemia (XLH) is a rare skeletal disorder associated with increased levels of fibroblast growth factor 23 (FGF23), resulting in skeletal deformities and short stature. The conventional treatment for XLH, lifelong phosphate and active vitamin D analogs supplementation, partially improves quality of life and is associated with severe long-term side effects. Recently, a monoclonal antibody against FGF23 has been approved for XLH but remains a high-cost lifelong therapy. We developed a liver-targeting AAV vector to inhibit FGF23 signaling. We showed that hepatic expression of the C-terminal tail of FGF23 corrected skeletal manifestations and osteomalacia in a XLH mouse model. Our data provide proof of concept for AAV gene transfer to treat XLH, a prototypical bone disease, further expanding the use of this modality to treat skeletal disorders.