Ovarian failure, also known as primary ovarian insufficiency (POI), occurs when the ovaries stop functioning normally before the age of 40. This condition leads to a decrease in the production of estrogen and other hormones, causing irregular or absent menstrual periods and symptoms similar to menopause.