In a class, the static keyword is used to declare a static member, which belongs to the class itself rather than an instance of the class. This means that you can access a static member without creating an instance of the class.