The basic structural and functional unit of all organisms. includes the plasma membrane and any external encapsulating structures such as the cell wall and cell envelope.