Backgroud: Salivary gland degeneration and dysfunction are common symptoms that occur after sex hormone deprivation, but the underlying mechanisms remain largely unknown. Additionally, immunocastration, which causes drop of sex hormones, has been developed as an alternative to surgical castration, however whether it exerts similar effects as surgical castration on the salivary glands is unknown. Through histological and RNA-seq analysis, we assessed changes in morphology and transcriptome of submaxillary gland (SMG) in response to immunocastration (IM) versus surgical castration (bilateral orchiectomy, ORC). Results: Compared to intact males (EM), ORC caused a dramatical degeneration of SMG in rats, as evidenced by both decreased (P < 0.01) SMG weight and organ index, and by decreased (P < 0.01) quantity of SMG acini and ducts. IM had minimal effects (P > 0.05) on SMG weight and organ index, but it still caused degeneration (P < 0.05) of the acini and ducts. Even though, the quantity of both SMG acini and ducts was much higher (P < 0.001) in IM than in ORC. Functional enrichment analysis of the common regulated genes by ORC/IM revealed disrupted epithelial cell development, angiogenesis, anatomical structure morphogenesis and enhanced cell death are associated with SMG degeneration in deprivation of androgens. Integrated data analysis shown that there existed a selective hyperfunction of SMG ribosome and mitochondrion in ORC but not in IM, which might be associated with more severe degeneration of SMG in ORC than in IM. Conclusions: Our findings suggested that both surgical castration and immunocastration caused SMG degeneration by disrupting epithelial cell development, angiogenesis, anatomical structure morphogenesis and enhancing cell death. But, surgical castration selectively induced hyperfunction of SMG ribosome and mitochondrion, thus causing more severe degeneration of SMG than immunocastration.