The nuclear membrane, also known as the nuclear envelope, is a double-layered membrane that surrounds the nucleus in eukaryotic cells. It serves as a barrier, protecting the genetic material from the cytoplasm and regulating the passage of molecules between the nucleus and the rest of the cell.