The shape of nanoparticles can be controlled during synthesis by adjusting parameters such as temperature, pH, concentration of precursors, and the type of stabilizing agents used. For example, the use of surfactants can help in directing the growth of nanoparticles into specific shapes by adsorbing onto particular facets of the growing particles.