Ectopic pregnancy is defined as the implantation of the fertilized egg outside the uterus, such as in the Fallopian tubes or abdomen.