The purpose of this study was to examine the relationships of goal orientations and moral atmosphere on moral functioning, and to examine the differences of goal orientations and moral atmosphere on predicting moral functioning in male and female high school basketball players. Participants were 100 female and 133 male high school basketball players. They completed questionnaires assessing three-dimension goal orientations, moral atmosphere, and moral functioning. The results indicated that ego orientation, perceived team amoral atmosphere, perceived coach amoral atmosphere, amoral intention and amoral behavior were higher in male than female. The results also indicated that both perceived coach amoral atmosphere and perceived team amoral atmosphere could significant predict moral functioning in male players. But there was only perceived team amoral atmosphere could significant predict moral functioning in female players. These results suggested that promoting positive team moral atmosphere could be helpful in athletes' moral functioning.