Pyrrolysine is synthesized through a unique pathway that involves the enzymes PylB, PylC, and PylD. These enzymes work together to convert two molecules of L-lysine into pyrrolysine. The gene responsible for encoding pyrrolysine-tRNA synthetase recognizes the unique tRNA that incorporates pyrrolysine during protein synthesis.