  In the framework of the relativistic quasipotential quark model the mass
spectrum of baryons with two heavy quarks is calculated. The quasipotentials
for interactions of two quarks and of a quark with a scalar and axial vector
diquark are evaluated. The bound state masses of baryons with
$J^P=\frac{1}{2}^+, \frac{3}{2}^+$ are computed.
