At the HERA accelerator at DESY in Hamburg electrons and protons are collided at a center of mass energy of about 320 GeV. Heavy quark pairs are mainly produced in ep interactions via the fusion of the exchanged photon with a gluon from the proton. The measurement of the heavy quarks production provides due to the high mass of the quarks a good test of perturbative QCD calculations and yields information about the structure of the proton and the photon. At HERA the production of b quarks is strongly suppressed compared to the production of c quarks. The different methods to tag b quarks are reviewed, in particular the identification of b hadrons via a life time measurement using the central silicon detector of the H1 experiment is explained in more detail. Experimental results are presented and compared to theoretical predictions.