The body makes testosterone, but its cells can't respond to it. So a 46XY child develops as female.
In androgen insensitivity syndrome, which is X-linked recessive, the tissues show end-organ resistance to testosterone, so people have a male genotype (46XY) but a female phenotype. It presents with primary amenorrhoea, little or no pubic and axillary hair, and groin swellings from undescended testes. Breasts develop because testosterone is converted to oestradiol. Chromosome analysis confirms it. Management includes counselling, bilateral orchidectomy because of the cancer risk, and oestrogen therapy.