When an embryo gets implanted outside the uterus e.g in the fallopian tube or the ovaries then that is ectopic pregnancy.