The main function of the anther is to produce and store pollen, which contains the male reproductive cells of a plant. The pollen is then transferred to the stigma of a flower, where it can fertilize the female reproductive cells and lead to the production of seeds.