State diagrams are diagrams that show the states of a system or process and the transitions between those states. They are used to model the behavior of a system and to understand how the system will behave in different scenarios. State diagrams can be used to represent a wide variety of systems, from software