[Problem] To provide: a novel oil or fat composition, particularly an oil or fat composition having excellent heating resistance and a method for producing the oil or fat composition.[Solution] The oil or fat composition according to the present invention comprises (I) a palm-based fractionated oil or fat in which the ratio of the content of tripalmitin relative to the content of triglyceride is 70 to 90 wt% and the ratio of the content of unsaturated fatty acids relative to the total content of all of fatty acids is 1 to 8 wt% and (II) a base oil having a melting point of lower than 10°C, wherein the content of the component (I) is 0.05 to 15 wt% relative to the whole weight of the oil or fat composition and the content of the component (II) is 85 to 99.95 wt% relative to the whole weight of the oil or fat composition.