A role-playing game puts you in charge of a defined character and asks you to develop them. You build up skills, statistics and equipment over time, and you work towards specific goals set by the story or by the world around you.
The defining feature is progression. Unlike a shooter or a platformer, where the challenge is fixed and your ability is what improves, an RPG changes the character on the screen — they get stronger, learn new abilities, and open up areas that were previously out of reach.
Everything else is variation. Some are turn-based and menu-driven, others run in real time. Some are enormous open worlds, others are linear. The common thread is that you are shaping one character's development rather than simply passing a series of tests.