A static constructor is used to initialize static members of a class. It is executed only once, when the class is accessed for the first time.