What's the purpose of these two diodes in this circuit?
This is a crude current source.
The two diodes are to create a voltage drop of approximately 1.4v, which is then applied across the transistor VBE and R21. This gives approximately 0.7v on R21, or 10mA through it.
Those two diodes could be replaced by a resistor to give the same voltage drop, but then if the supply voltage varied, the current would vary more or less proportionally. With diodes, the output current is substantially constant as the supply voltage varies.
It's only a crude current source as neither option with two diodes or a resistor gives you temperature compensation for the VBE of the transistor. Where this form of circuit is used as a current mirror, diode R18 is replaced with a resistor. The remaining diode R19 now compensates for the VBE and its temperature coefficient, and the voltage across the resistor R18 is now impressed on R21. For even closer compensation, diode R19 is often made from a 'diode connected transistor', and better yet, is a dual transistor with T1.
Both diodes together produce a volt drop of about 1.4 volts, hence the base is at a voltage of (5 - 1.4) volts. This means the emitter is 0.7 volts higher (due to the base-emitter region being a forward-biased diode) at 4.3 volts.
This forces 0.7 volts across R21 and means that a current of 0.7/68 amps (about 10 mA) flows through the emitter and then to the collector load (not shown in your picture).
This is a constant current source. The two diodes will drop a fairly constant voltage with respect to supply voltage and current. As a result, the voltage across R21 in series with the base-emitter voltage will have to equal about 1.4V. As the base-emitter junction is in essence a diode, it too will drop about 0.7 V (or at least a fairly constant voltage with respect to current flowing).
Because of that, the voltage across resistor R21 will be constant.