Masking agents are substances used to hide the presence of drugs or other chemicals in the body, often employed in the context of doping in sports. They work by either altering the metabolism or excretion of the target substance, making it undetectable in standard testing procedures.