Dungeons & Dragons is a game about many things. It's about storytelling and collaboration between friends. Its adventures can cover intrigue, mystery, two-fisted pulp, social interaction, and more. However, at its heart, D&D has a lot of combat. Its inspiration comes from fantasy works like Conan the Barbarian and Lord of the Rings, where martial might often carries the day.
Source:https://www.cbr.com/dnd-editions-best-combat-gameplay/