Olaparib is a chemotherapy medication that stops cancer cells from growing. It treats ovarian cancer, breast cancer, pancreatic cancer and prostate cancer. This medication comes in a tablet form that you can take by mouth with a glass of water as directed. Avoid grapefruit while taking this medication.