Phototoxic reactions occur when a substance absorbs light and generates reactive oxygen species or other reactive intermediates that damage cellular components, leading to a visible reaction such as redness or swelling. On the other hand, photoallergic reactions involve an immune response, where the light-altered compound acts as an allergen, triggering an allergic response. Both types of reactions are important considerations during the safety assessment of products.