Hello mandenbar,
It is what we call a Auxillery Power Unit (APU).
It's primary use is to provide the aircraft of electrical power and air to run the airconditioning packs and to start the engines.
The unit is mostly used on the ground but can also be used in flight as a back-up when one of the engine generators fails.
hope this helps.
regards Vincent