Beetle luciferases emit a wide range of bioluminescence colors, ranging from green to red. Firefly luciferases can shift the spectrum to red in response to pH and temperature changes, whereas click beetle and railroadworm luciferases do not. Despite many studies on firefly luciferases, the origin of pH-sensitivity is far from being understood. Through comparative site-directed mutagenesis and modeling studies, using the pH-sensitive luciferases (Macrolampis and Cratomorphus distinctus fireflies) and the pH-insensitive luciferases (Pyrearinus termitilluminans, Phrixotrix viviani and Phrixotrix hirtus) cloned by our group, here we show that substitutions dramatically affecting bioluminescence colors in both groups of luciferases are clustered in the loop between residues 223-235 (Photinus pyralis sequence). The substitutions at positions 227, 228 and 229 (P. pyralis sequence) cause dramatic redshift and temporal shift in both groups of luciferases, indicating their involvement in labile interactions. Modeling studies showed that the residues Y227 and N229 are buried in the protein core, fixing the loop to other structural elements participating at the bottom of the luciferin binding site. Changes in pH and temperature (in firefly luciferases), as well as point mutations in this loop, may disrupt the interactions of these structural elements exposing the active site and modulating bioluminescence colors.