Yaz is primarily used as a contraceptive to prevent pregnancy. Yaz works by inhibiting ovulation, thickening cervical mucus, and altering the lining of the uterus to prevent the fertilization of an egg and the implantation of a fertilized egg. .