There are two main ways to treat an ectopic pregnancy if it is diagnosed before the Fallopian tube ruptures. The first is with the medicine methotrexate. If it is given early enough, it can cause an abortion and end the pregnancy. The second is with a surgery called a laparoscopy (a surgery done with a laser). The surgeon makes a small cut in the belly and removes the embryo. A laparoscopy is done after the first few weeks of the pregnancy.