Rhizosphere and root endophytic bacteria are crucial for plant development, but the question remains if their composition is similar and how environmental conditions, such as water content, affect their resemblance. Ricinus communis L., a highly drought resistant plant, was used to study how varying soil water content affected the bacterial community in uncultivated, non-rhizosphere and rhizosphere soil, and in its roots. Additionally, the bacterial community structure was determined in the seeds of R. communis at the onset of the experiment. Plants were cultivated in soil at three different watering regimes, i.e. 50% water holding capacity (WHC) or adjusted to 50% WHC every two weeks or every month. Reducing the soil water content strongly reduced plant and root dry biomass and plant development, but had little effect on the bacterial community structure. The bacterial community structure was affected significantly by cultivation of R. communis and showed large variations over time. After 6 months, the root endophytic bacterial community resembled that in the seeds more than in the rhizosphere. It was found that water content had only a limited effect on the bacterial community structure and the different bacterial groups, but R. communis affected the bacterial community profoundly.