Hysterosalpingography is an X-ray technique used to evaluate the uterine cavity and fallopian tubes. It involves injecting a contrast dye into the uterus and taking X-ray images to assess the shape and patency of the reproductive tract. HSG is commonly used in infertility evaluations.