A mucous membrane that lines the uterus and is shed during menstruation and modified during pregnancy