To substitute; to take somebody's place.
To do a task that one is not ordinarily expected to do because there is no one else to do it.