Fireflies emit flashes in the green-yellow region of the spectrum for the purpose of sexual attraction. The bioluminescence color is determined by the luciferases. It is well known that the in vitro bioluminescence color of firefly luciferases can be shifted toward the red by lower pH and higher temperature; for this reason they are classified as pH-sensitive luciferases. However, the mechanism and structural origin of pH sensitivity in fireflies remains unknown. Here we report the cloning of a new luciferase from the Brazilian twilight active firefly Macrolampis sp2, which displays an unusual bimodal spectrum. The recombinant luciferase displays a sensitive spectrum with the peak at 569 nm and a shoulder in the red region. Comparison of the bioluminescence spectra of Macrolampis, Photinus and Cratomorphus firefly luciferases shows that the distinct colors are determined by the ratio between green and red emitters under luciferase influence. Comparison of Macrolampis luciferase with the highly similar North American Photinus pyralis luciferase (91%) showed few substitutions potentially involved with the higher spectral sensitivity in Macrolampis luciferase. Sitedirected mutagenesis showed that the natural substitution E354N determines the appearance of the shoulder in the red region of Macrolampis luciferase bioluminescence spectrum, helping to identify important interactions and residues involved in the pH-sensing mechanism in firefly luciferases.