Genes are segments of DNA that contain the code for a specific protein. Proteins are the building blocks of cells and tissues, and they play a vital role in almost every cellular process. Genes are located on chromosomes, which are thread-like structures in the nucleus of a cell.