A male offspring is formed from the joining of a haploid X chromosome and a haploid Y chromosome (XY). Since the egg gamete only ever has X chromosomes then the sperm gamete that fertilizes the egg must carry a Y chromosome for a male offspring (XY) to be formed.