The OSI model defines 7 layers of network communication: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer has a specific function, with data being encapsulated as it moves down the stack and de-encapsulated as it moves up. The model was developed by ISO to provide a standard for connecting diverse computer systems across networks.