The nucleocapsid is a protein shell that encases the genetic material of a virus, playing a crucial role in the protection and delivery of the viral genome into host cells. It is a fundamental component of both RNA and DNA viruses, influencing viral assembly and host immune response evasion.