to replace, substitute forIn Spain, sustituir a alguien means to take someone’s place or do their job; sustituir algo por otra cosa means to replace it with something else.
SP: Voy a sustituir a Marta mientras está de vacaciones.
EN: I’m going to cover for Marta while she’s on holiday.