There is considerable evidence of gender identity different from biological sex lining up with biological features in several areas more typical of the other sex, so it seems that gender identity is tied to biology.
Which, if you think about it, it has to be: humans are biological machines, everything about them is biology, on one level or another. All of psychology is, ultimately, biology.