A method for ameliorating erectile dysfunction (ED) in a subject, by injecting a population of cells capable of increasing nitric oxide production in corporal tissue, and maintaining the cells in vivo to increase local tissue concentrations of nitric oxide, whereby intracavernous pressure can be improved upon stimulation.