A constructor is a special method in object-oriented programming (OOP) that is used to initialize an object's state when it is created. It is automatically called when an object of a class is instantiated. In Python, the constructor is defined using the init method.