The function of hymen is unknown but has been proposed as a vaginal barrier against external sources of infection until puberty.