An alkylating agent is a chemical compound that introduces an alkyl group into DNA, leading to the disruption of its structure and function. These agents are commonly used in chemotherapy to treat cancer by damaging the DNA of rapidly dividing cells.