(p)ppGpp production is mediated by the ribosome parts: RelA and L11A when there are no charged tRNA's available to bind to the ribosome. RelA converts GTP and ATP into pppGpp by adding the pyrophosphate from ATP onto the 3' carbon of the ribose in GTP releasing AMP.
pppGpp is converted to ppGpp by the gpp gene product, releasing Pi. ppGpp is converted to GDP by the spoT gene product, releasing pyrophosphate (PPi). GDP is converted to GTP by the ndk gene product. NTP provides the Pi, and is converted to NDP.
The cycle repeats when GTP is reacted with ATP by the RelA gene.
(p)ppGpp inhibits other energy-consuming cell process, such as replication and transcription.
ATP ----> AMP
GTP ----> pppGpp