in loco parentis
legal Latin, 1640s in English, literally "in the place of a parent," from loco, ablative of locus "a place" (see locus (n.)) + parentis, genitive of parens "parent" (see parent (n.)).