The nuclear envelope is a double-membrane structure that encloses the nucleus. It separates the nucleoplasm from the cytoplasm and regulates the exchange of materials between the nucleus and the cytoplasm through nuclear pores. The outer membrane is continuous with the endoplasmic reticulum, while the inner membrane is associated with the nuclear lamina, providing structural support.