How do people's beliefs and actions change when they are embedded in social structures that can shape the information they receive, and which change when acted upon? In this work, I use a variety of agent-based models, such as multi-agent reinforcement learning (MARL) and generative agent-based models (GABMs), to capture how individual behaviour can produce feedback loops that shape the structure of a social group, and subsequently the beliefs of those within it, producing emergent phenomena such as stereotyping and social convention formation.