Role

In Dota 2, roles define the way a Hero can be played given their Attributes, Skills, and player. Different Heroes are suited for different roles and can be played different ways based on the player and situation. It is important to have a variety of roles in a team in order to increase the tactics at your disposal. There are three major roles: Carry, Support, and Ganker. The are many lesser, more subtle roles. The central ones are: Pusher, Tank, Jungler, and Initiator.

Major Roles
Major Hero roles are roles that are usually always chosen on a team. Without them a team is very unbalanced and is usually lacking in the missing subject.

Carry
Carry Heroes are Heroes that "carry" the team to victory. They are highly dependent on Items in order to be successful. Usually, they start out weak, but become a lot stronger later in the game. A carry hero depends on certain skill and Items to reach their maximum potential. Having too many Carries will cause competition within your team for resources, which might ended up losing the match. It is recommended that a team have only one or two Carry Heroes.
 * Examples of Carries include Anti-Mage, Sniper, Spectre, and Drow Ranger.

Support
Support Heroes are Heroes that assist other Heroes by keeping their allies alive and giving them opportunities to earn more Gold and Experience. Supports will usually come with Skills such as healing spell or skills that Disable enemies in order to prevent them from attacking friendly Heroes, or make them an easy target. Support Heroes are not dependent on Items to be successful.
 * Examples of Supports include Lich, Crystal Maiden, and Chen.

Ganker
Ganker Heroes are Heroes that specialize in taking out enemy Heroes quickly. They stop enemy Carries from farming properly and harassing other Heroes in order to prevent the enemy team from getting levels, skills, and items they need. While Support Heroes might focus on defending their teammates or rendering enemies useless, Gankers will usually play in a more offensive manner, such as getting early game kills to hinder enemy's progress.
 * Examples of Gankers include Vengeful Spirit, Zeus, and Nature's Prophet.

Minor Roles
Minor Hero roles are roles that come second-hand to the major roles, and if none of them are picked it does not affect the game as much as if a major role is missing.

Initiator
Initiator Heroes are Heroes that are built for a team fight. Those heroes usually has Skills that affect enemy Heroes in a large area which is useful in a team-fight. They typically engage enemies first, either disabling the enemy team and tanking damage, while the rest of the team follows suit. They specialize in impairing enemies during teamfights.
 * Examples of Initiators include Tidehunter, Vengeful Spirit, Earthshaker, and Clockwerk.

Pusher
Pusher Heroes are Heroes concentrate on building up creep waves and taking down towers. Their goal is to put pressure on the enemy team, forcing them away from grinding income, and finishing the game before the enemy Carry can become unstoppable. Pushers typically have skills that fortify creep waves, summon minions, or decimate enemies.
 * Examples of Pushers include Pugna, Leshrac, Chen, and Enigma.

Tank
Tank Heroes are Heroes that concentrate on having all focus on them. These heroes usually have insane amounts of HP, HP regeneration, and armor and can take high amounts of damage and still live. Their goal is to have everyone's attention while the DPS kill everything in sight.
 * Examples of Tanks include Centaur Warchief, Pudge, and Axe.

Jungler
Jungler Heroes are Heroes that jungle neutrals at the start of the game, rather than lane. This allows for there to be two solo lanes, allowing the two solo lanes (Usually carries/support) to gain more experience. Junglers typically have skills that allow them to convert neutral creeps, summon minions, or decimate enemies.
 * Examples of Junglers include Nature's Prophet, Lycan, and Juggernaut.