While theoretically, any drug can cause an allergic reaction, certain classes are more frequently implicated. These include penicillins, sulfonamides, nonsteroidal anti-inflammatory drugs (NSAIDs), and anticonvulsants. The likelihood of developing an allergy depends on several factors, including genetic predisposition and the individual's history of allergies.