The term "cancer" refers to a broad range of diseases that develop in any organ or tissue of the body when malignant cells multiply out of control, cross their usual boundaries to infect surrounding body regions, and spread to other organs, primarily problems that arise in breast cancer and lung cancer. The world recognizes Artificial Intelligence (AI) as a cutting-edge technology. Today, several institutes, organizations, and individuals are aiming to use AI in practically every industry, including healthcare, education, manufacturing, etc. AI is one of many technologies that have been developed to treat cancer. AI is a computerized simulation of human intelligence that solves complex problems by use of personified knowledge and also it has been revealed that lowering cancer fatalities needs early diagnosis so this review focused on the emerging role of AI in cancer diagnosis, cancer treatment, anticancer drug development with (chemotherapy, immunotherapy, radiotherapy, machine deep learning, clinical support system) and different technologies for the treatment of breast cancer and lung cancer.