in loco parentis

a Latin, legal term meaning 'in the place of the parents'. In educational contexts, it refers to the role of teachers in assuming the duties and responsibilities of a parent towards young people in their charge.