Upper secondary schools in Sweden went from classroom education to distance education due to the Corona pandemic. Research shows that teacher-student relationships are essential for students’ personal development and learning. Against this background, it is of interest to study how teachers have worked with developing teacher-student relationships in a digital classroom. This study aims to explore how social studies teachers have worked with creating relationships with students in a classroom environment and in a digital environment. To achieve this aim, the school context that the teachers work within also are of interest, because teacher’s ability to work with teacher-student relationship is affected by the school context. Semi-structured interviews were conducted with five social studies teachers at upper secondary school level. The results show that the teachers had a lot of control over their own teaching, the school’s only requirement was that the lessons should follow the regular schedule. The teachers describe different strategies they worked with in the digital and regular classroom. The result also shows that teacher-student relationship is more present in the regular classroom than the digital classroom. Teacher-student relationships is a complex matter and within the digital classroom the codes for interaction change. The new codes require more active choices in interaction and more distinct communication.