Abstract How do people treat robot teammates compared to human opponents? Past research indicates that people favor, and behave more morally toward, ingroup than outgroup members. People also perceive that they have more moral responsibilities toward humans than nonhumans. This paper presents a 2×2×3 experimental study that placed participants ( N = 102) into competing teams of humans and robots. We examined how people morally behave toward and perceive players depending on players’ Group Membership (ingroup, outgroup), Agent Type (human, robot), and participant group Team Composition (humans as minority, equal, or majority within the ingroup compared to robots). Results indicated that participants favored the ingroup over the outgroup and humans over robots – to the extent that they favored ingroup robots over outgroup humans. Interestingly, people differentiated more between ingroup than outgroup humans and robots. These effects generalized across Team Composition.