We discuss geometry underlying orientifolds with nontrivial NS–NS B flux. If D-branes wrap a torus with B flux the rank of the gauge group is reduced due to noncommuting Wilson lines whose presence is implied by the B flux. In the case of c-branes transverse to a torus with B flux the rank reduction is due to a smaller number of D-branes required by tadpole cancellation conditions in the presence of B flux as some of the orientifold planes now have the opposite orientifold projection. We point out that T duality in the presence of B flux is more subtle than in the case with trivial B flux, and it is precisely consistent with the qualitative difference between the aforementioned two setups. In the case where both types of branes are present, the states in the mixed (e.g. 59) open string sectors come with a nontrivial multiplicity, which we relate to a discrete gauge symmetry due to nonzero B flux, and construct vertex operators for the mixed sector states. Using these results we revisit K3 orientifolds with B flux (where K3 is a T4/ZM orbifold) and point out various subtleties arising in some of these models. For instance, in the Z2 case the conformal field theory orbifold does not appear to be the consistent background for the corresponding orientifolds with B flux. This is related to the fact that nonzero B flux requires the presence of both O5-- as well as O5+-planes at various Z2 orbifold fixed points, which appears to be inconsistent with the presence of the twistedB flux in the conformal field theory orbifold. We also consider four-dimensional [Formula: see text] and [Formula: see text] supersymmetric orientifolds. We construct consistent four-dimensional models with B flux which do not suffer from difficulties encountered in the K3 cases.