A method for producing a gel-like oily composition including the following components (A), (B), and (C) : (A) 4 to 60% by weight of a sphingosine represented by the formula (1) (wherein R1 represents a hydrocarbon group having 4 to 30 carbon atoms Y represents a methylene group, a methine group, or an oxygen atom X1, X2, and X3 each represent a hydrogen atom, a hydroxyl group, or an acetoxy group X4 represents a hydrogen atom, an acetyl group, or a glyceryl group or forms an oxo group together with the adjacent oxygen atom R2 and R3 each represent a hydrogen atom, a hydroxyl group, a hydroxymethyl group, or an acetoxymethyl group "R"s each represent a hydrogen atom or an amidino group or represent a hydrocarbon group having a total of 1 to 8 carbon atoms "a" represents a number of 2 or 3 and a bond represented by a broken line and a solid line indicates a saturated bond or an unsaturated bond) (B) 0.5 to 10% by weight of an anionic polymer having a carboxyl group and (C) 30 to 95.5% by weight of an oil in a liquid state at 25°C selected from a hydrocarbon oil, an ester oil, and an ether oil, the method including mixing the components (A), (B), and (C) and heating the resultant mixture to a temperature equal to or more than a melting point of the component (A) to neutralize the component (B) with the component (A) to form a salt.