Together, our results indicate that loss of Phf8 in animals causes deficient learning and memory by epigenetic disruption of mTOR signaling, and provides a potential therapeutic drug target to treat XLID. Here, MTOR is linked to cask-related x-linked intellectual disability.