Yaz contains ethinylestradiol and drospirenone. These are synthetic or man-made versions of naturally occurring hormones. Developed in a laboratory, they’re used in many areas of medicine, not just contraception.
Birth control pills have either a type of progesterone or synthetic versions of both progesterone and oestrogen. If they contain both, like Yaz, they’re known as combined pills.