The basic mechanism involves a photoacid generator (PAG) within the resist material. When exposed to light, the PAG produces a strong acid. This acid then catalyzes a reaction that changes the resist's solubility in a developer solution. Because each photon can generate multiple acid molecules, the process is chemically amplified, allowing for higher sensitivity and finer resolution.