For example, if you put a piece of iron in a copper solution, the copper will take electrons from the iron and reduce itself. Thus, solid copper will be produced at the same time iron ions are generated. Take into account that many of these reactions are very slow. There are quicker reactions too, of course.