  We construct N=1 and N=0 chiral four-dimensional vacua of flux
compactification in Type IIB string theory. These vacua have the common
features that they are free of tadpole instabilities (both NSNS and RR) even
for models with N=0 supersymmetry. In addition, the dilaton/complex structure
moduli are stabilised and the supergravity background metric is warped. We
present an example in which the low energy spectrum contains the MSSM spectrum
with three generations of chiral matter. In the N=0 models, the background
fluxes which stabilise the moduli also induce soft supersymmetry breaking terms
in the gauge and chiral sectors of the theory, while satisfying the equation of
motion. We also discuss some phenomenological features of these three
generation MSSM flux vacua. Our techniques apply to other closed string
backgrounds as well and, in fact, also allow to find new N=1 D-brane models
which were believed not to exist. Finally, we discuss in detail the consistency
conditions of these flux compactifications. Cancellation of K-theory charges
puts additional constraints on the consistency of the models, which render some
chiral D-brane models in the literature inconsistent.
