The membrane surrounding cells acts as a selective barrier, cradling and protecting the cell's contents from the external surroundings and choosing which substances to allow in or out of the cell.