Genes are segments of DNA that contain instructions for building and maintaining an organism. They carry genetic information that is passed from one generation to the next. Genes determine traits and play a crucial role in heredity and variation.