A sequence diagram is a type of UML diagram that illustrates how objects interact in a particular scenario of a use case, focusing on the order of messages exchanged. It is primarily used to visualize the dynamic behavior of a system, showing the sequence of message passing between objects over time.