Inheritance allows a class to inherit attributes and methods from another class. It helps in code reuse and establishes a relationship between the parent and child classes.