Shared hosting is when multiple websites share a single server and its resources. VPS hosting is when a single server is divided into multiple virtual servers, each with its own dedicated resources.