The possibilities of using simultaneous fluence and energy modulation techniques in electron beam therapy to shape the dose distribution and almost eliminate the influences of tissue inhomogeneities have been investigated. By using a radiobiologically based optimization algorithm the radiobiological properties of the tissues can be taken into account when trying to find the best possible dose delivery. First water phantoms with differently shaped surfaces were used to study the effect of surface irregularities. We also studied water phantoms with internal inhomogeneities consisting of air or cortical bone. It was possible to improve substantially the dose distribution by fluence modulation in these cases. In addition to the fluence modulation the most suitable single electron energy in each case was also determined. Finally, the simultaneous use of several preselected electron beam energies was also tested, each with an individually optimized fluence profile. One to six electron energies were used, resulting in a slow improvement in complication-free cure with increasing number of beam energies. To apply these techniques to a more clinically relevant situation a post-operative breast cancer patient was studied. For simplicity this patient was treated with only one anterior beam portal to clearly illustrate the effect of inhomogeneities like bone and lung on the dose distribution. It is shown that by using fluence modulation the influence of dose inhomogeneities can be significantly reduced. When two or more electron beam energies with individually optimized fluence profiles are used the dose conformality to the internal target volume is further increased, particularly for targets with complex shapes.