UV spectroscopy is a technique used to analyze the composition of a sample by measuring its absorption or reflection of ultraviolet light. The sample is placed in a UV spectrophotometer and exposed to a range of UV wavelengths. The amount of light absorbed or reflected at each wavelength is recorded and plotted as a UV spectrum. This spectrum can be used to identify specific compounds in the sample, as each compound absorbs or reflects light at different wavelengths. This technique is widely used in fields such as chemistry, biology, and environmental science to analyze a variety of samples such as drugs, food, and water.