The endometrium is the lining of the inside of your uterus. The uterus is a part of your reproductive system along with the fallopian tubes and ovaries. The function of the reproductive system is to reproduce. In other words, make babies.
If pregnancy does not occur,. innermost layer of the endometrium is shed as menstrual fluid. This leads to the cyclical nature of the menstrual cycle.