Steroids are environmental endocrine disruptors that are discharged from vertebrates and are also byproducts of aquaculture. They have strong endocrine disrupting effects and are extremely harmful to the environment. The pollution of steroids in Beihai Bay was assessed through analyzing sources from rivers entering the bay. Six different types of steroids were detected in seagoing rivers, seagoing discharge outlets, and marine aquaculture farms, ranging from 0.12 (methyltestosterone) to 2.88 ng/L (estrone), from 0.11 (cortisol) to 5.41 ng/L (6a-methylprednisone (Dragon)), and from 0.13 (estradiol) to 2.51 ng/L (nandrolone), respectively. Moreover, 5 steroids were detected in 13 of the 19 seawater monitoring stations, accounting for 68.4% of the samples, and their concentrations ranged from 0.18 (methyltestosterone) to 4.04 ng/L (estrone). Furthermore, 7 steroids were detected in 15 of the 19 sediment monitoring stations, accounting for 78.9% of the samples, with concentrations ranging from 26 (estrone) to 776 ng/kg(androsterone). Thus, the main source of marine steroids were the discharging rivers and pollution sources entering the sea. An ecological risk assessment indicated that estrone and methyltestosterone were at high risk in this region; 17β estradiol (E2β) was medium risk, and other steroids were of low or no risk. This study provides a scientific basis for ecological risk assessment and control.