The present invention provides a surface treating agent that can improve texture in use and impart excellent water resistance and sebum resistance. A surface treating agent comprising an organosiloxane derivative having a divalent or trivalent metal salt of a terminal carboxyl group, represented by the following formula (1) or (3).