The four main layers of any web app include presentation, data service, business logic, and data access. These layers facilitate user interaction, ensure data security, help control functionality, and provide access to database systems.