The X chromosome is a sex gene. The female egg always carries one X chromosome. The sex of an embryo is determined by the sex chromosome carried by the sperm that fertilises the egg. The sperm can either bring another X chromosome (XX) in which case the embryo will develop into a female or the sperm can carry an Y chromosome (XY) in which case the embryo will develop into a male.