the main purpose of the turbine in the turbojet engine is to?

The turbine rotates the compressor, compressing the inlet air. Often, electrical generators and hydraulic pumps are attached to the turbine via gears also.

drive the compresser