A thin, pliable layer of tissue that lines a cavity, covers an organ, or acts as a septum or connection between structures.