Serverless architecture aims to abstract away server management and scalability. Microservices architecture, on the other hand, focuses on splitting large code bases into smaller, more manageable parts. In serverless, developers write and deploy stateless, ephemeral functions that run in response to events. In contrast, microservices allow the deployment and management of complete self-contained services that manage their own states and storage.