Social pain is often associated with social rejection and shares neural correlates with the bothersome aspect of physical pain, which may also indicate an overlap in function. Pain has been described as a motivational signal to respond to the source of the pain in an adaptive way, such as by altering behavior. We tested whether social pain causes similarly adaptive alterations in behavior. Participants played computerized ball-tossing tasks with putative players-one who passed to and one who excluded the participant from play-in both a social and nonsocial version. We assessed the behavioral consequences of social pain by comparing the number of throws to each stimulus (social rejector vs. nonsocial rejector) over the course of the task. Posttask questionnaires assessed subjective feelings of social pain. A decrease in throws to the rejecting stimulus was only observed in the social version, indicating that rejection that is social in nature leads to change in behavior. Moreover, participants reported more negative feelings toward the rejecting stimulus in the social than in the nonsocial version. These subjective feelings of social pain mediated the effect of version of the game (social vs. nonsocial) on changes in behavior, indicating that social pain from social rejection causes changes in behavior.