Role-based access control is like assigning roles with different levels of access to different parts of a house. Imagine a house with 4 floors, each with a different room. To enter each floor, you need a special key. The owner of the house might give the key for the first floor to the family members, the key for the second floor to the gardeners and cleaners, and the key for the third and fourth floors to the people who help run the house. This means that the family members can only access the first floor and the gardeners and cleaners can only access the second floor. The people who help run the house can access all floors.