Peroxidizability of fatty acids in the air is roughly proportional to the number of double bonds, but in vivo peroxidation proceeds in a more complex manner. Here, we compared the effects of dietary and topically applied oils enriched with linoleic acid (LA, 18:2n‐6) or alpha‐linolenic acid (ALA, 18:3n‐3) on UV‐induced skin injury in a strain of hairless mice. The UVB‐induced erythema score was significantly lower in mice with topically applied creams containing LA and ALA than in mice with the basal cream; no significant increase in the score was detected in the ALA group compared with the LA group. However, dietary ALA inhibited the increase in erythema score after UVB irradiation compared with LA. The peroxidizability index of the skin total lipids was significantly higher, but UVB‐induced prostaglandin E2 (PGE2) production was significantly lower in the group fed an ALA‐rich diet compared with the group fed an LA‐rich diet. The levels of thiobarbituric acid–reactive substances, estimated in the presence of butylated hydroxytoluene in the assay mixture, were not affected by UVB treatment or by the dietary fatty acids, but the severity of the skin lesion was associated with PGE2 levels. These results indicate that the type of fatty acids, n‐6 or n‐3, is critical for the suppression of UVB‐induced skin lesion when the skin fatty acids are modified by dietary manipulation. Anti‐inflammatory activity of dietary flaxseed oil with relatively high ALA and low LA contents was demonstrated in UVB‐irradiated hairless mice.