By measuring how an object interacts with light, we can actually find the chemical composition of any sample. We can use spectroscopy to measure the composition of illegal drugs, roman concrete, and even the composition of interstellar space.
One of my professors is using it to identify stars