A membrane divides spaces or substances.