As metals burn, they produce a characteristic spectrum of colors which can be used as a simple method of identification. Fireworks owe their colors to many of the group 1 and group 2 metals.