An object is to provide a carbazole derivative which has a wide band gap and with which excellent blue color purity is obtained. In addition, another object is to provide highly reliable light-emitting elements, light-emitting devices, lighting devices, and electronic devices in which the carbazole derivative is used. Carbazole derivatives represented by the general formulas (1), (P1), and (M1) are provided. Further, light-emitting elements, light-emitting devices, and electronic devices which are formed using the carbazole derivative represented any of the general formulas (1), (P1), and (M1) are provided.