Plants are grown in soil that contains low grade ore. the plants absorb metal ions through their roots and concentrate these ions in their cells. the plants are harvested and burnt. the ash left behind contains metal compounds.
I hope this helps :)
5.1m questions
6.7m answers