Female crabs enter a stage of rapid ovarian development after mating, and cholesterol is a substrate for steroid hormone synthesis. Therefore, in this experiment, an 8-week feeding trial was conducted to investigate the effects of mating treatments (mated crab and unmated crab) and three dietary cholesterol levels (0·09 %, 0·79 % and 1·40 %) on ovarian development, cholesterol metabolism and steroid hormones metabolism of adult female swimming crab (Portunus trituberculatus). The results indicated that crabs fed the diet with 0·79 % cholesterol significantly increased gonadosomatic index (GSI) and vitellogenin (VTG) content than other treatments in the same mating status. Moreover, mated crabs had markedly increased GSI and VTG content in the ovary and hepatopancreas than unmated crabs. The histological observation found that exogenous vitellogenic oocytes appeared in the mated crabs, while previtellogenic oocytes and endogenous vitellogenic oocytes were the primary oocytes in unmated crabs. The transmission electron microscopy analysis showed that when fed diet with 0·79 % cholesterol, the unmated crabs contained more rough endoplasmic reticulum and mated crabs had higher yolk content than other treatments. Furthermore, mating treatment and dietary 0·79 % cholesterol level both promoted cholesterol deposition by up-regulation of the mRNA and protein expression levels of class B scavenger receptors 1 (Srb1), while stimulating the secretion of steroid hormones by up-regulation of the mRNA and protein expression of steroidogenic acute regulatory protein (Star). Overall, the present results indicated that mating behaviour plays a leading role in promoting ovarian development, and dietary 0·79 % cholesterol level can further promote ovarian development after mating.