To replace something is to put it in the place of something else.
I replaced the tire on my car because it was flat.
Example picture