The phrase come out of the closet means to admit publicly one's homosexuality. Example: He came out of the closet when he went to university.