It's Called Chemical Engineering
Read Zubrin's book, he's got an amazing amount of it in it despite not being a chemical engineer. Most of the people that work for him are. What you need are the raw materials not the finished products. Mars has all we need relatively easily available. No where else in the SS besides Earth is that true.
