An activity diagram is a graphical representation used in UML to model the workflow of a system, illustrating the sequence of activities and their interdependencies. It helps in understanding and analyzing the dynamic aspects of a system by focusing on the flow of control and data among various activities.