Xiaokang Liuwei Dihuang decoction ameliorates the immune infertility of male rats induced by lipopolysaccharide through regulating the levels of sex hormones, reactive oxygen species, pro-apoptotic and immune factors.