Fetching details from the dictionary...

to succeed; to relieve; to replace
to take the place of; to substitute for; to take over for; to represent; to hand over (telephone)
to be exchanged; to change (places with); to switch
部長が代わって新しい方針になった。
The department head changed and there's a new policy.
母に代わって買い物に行った。
I went shopping in place of my mother.
季節が代わるたびに服を入れ替える。
I swap out my clothes every time the season changes.