You may need surgery to remove your ectopic pregnancy if medical treatment hasn't worked, your pregnancy is quite advanced or located outside your fallopian tubes, or your fallopian tube has ruptured and you have a severe internal bleed.
Attribution: BUPA