to replace someone temporarily
He had to stand in for the lead actor during the rehearsal.
彼はリハーサル中に主演俳優の代役を務めなければならなかった。