A small portion of a gene or protein that appears in many genes or proteins that are related in structure; the box usually has some specific function, sometimes called a "motif", like binding DNA or interacting with specific proteins or other molecules.