Fertility medications are prescribed to stimulate the ovaries and promote the development and release of mature eggs.