A gene is a hereditary unit that exists in an organism and is responsible for transmitting specific traits from parent to offspring. It is made up of DNA sequences that code for proteins or RNA molecules, which play crucial roles in various biological processes such as growth, development, and reproduction. Genes can be passed down through generations and may undergo mutation, leading to changes in the traits they express.