The relation between psychoanalysis and feminism has been the focus of attention in the French academy, and among them, the issue of gender identity (sexualité) has been the focus of feminist criticism of the classical theory of psychoanalysis. In response to the above debate, I believe that there is a dimension that cannot be ignored, that is the relationship between otherness and gender identity. To show this dimension, I will first examine the concept of "homosocial desire" proposed by Sedgwick and Chizuko Ueno. Second, I will sort out the passages in Freud and Lacan that may be relevant to this issue. My argument is, first, that developments within psychoanalysis from Freud to Lacan do provide new foundations for theories of gender identity; second, that the issue of sociality behind gender identity also poses a challenge for psychoanalytic theory.