We reveal the relevance between the nonlocality and the focusing/defocusing states in nonlocally nonlinear media, and predict a novel phenomenon that the self-focusing/self-defocusing property of the optical beam in the nonlocally nonlinear medium with a sine-oscillation response function depends on its degree of nonlocality. The transition from the focusing nonlinearity to the defocusing nonlinearity of the nonlinear refractive index will happen when the degree of nonlocality of the system goes cross a critical value, and vise verse. Bright and dark soliton solutions are obtained, respectively, in the focusing state and in the defocusing state, and their stabilities are also discussed. It is mentioned that such a phenomenon might be experimentally realized in the nematic liquid crystal with negative dielectric anisotropy or in the quadratic nonlinear medium. PACS numbers: 42.65.Jx;42.65.Tg; 42.70.Df; 42.65.Ky. The optical Kerr effect(OKE) [1-3], as one of the most important effects in nonlinear optics, is a fundamental and widespread phenomenon in the nonlinear interactions of light with materials, such as semiconductors [4], polymers [5], liquid crystals [6, 7], soft matters [8], photorefractive [9] and thermal [10-12] media. The equivalent OKE can also be found in optical quadratic nonlinear processes [13-15], and the other physical systems, such as Bose-Einstein condensates [16], quantum electron plasmas [17], and even on the surface of water [18]. The OKE refers to the light-intensity dependence of the refractive index n, that is, n = n 0 +N, where n 0 is its linear part and N is the light-induced nonlinear refractive index (NRI). Optical solitons [3,19] are the main phenomena resulting from the OKE.The OKE is of two important intrinsic properties: the nonlocality and the focusing/defocusing. The NRI exhibits generally the nonlocality both in space and time [3]. In consideration of the spatial nonlocality in bulk materials, the NRI can be expressed phenomenologically as [3,20] where n 2 is the Kerr coefficient that is determined by material properties, the symmetric R(x) is the response function of the media and E the optical field. If R(x) becomes δ-function, then N = n 2 |E| 2 , which is the wellknown local OKE [1, 2]; Otherwise, the nonlocality is non-negligible. Systematic study on the nonlocality began with the work by Snyder and Mitchell [21]. Their * The first two authors have contributed equally to this work, with the first one mainly to analytical operations and the second one mainly to numerical simulations. The third author has contributed to analytical solution of the dark soliton. † Electronic address: guoq@scnu.edu.cn