The purpose of a Visitor pattern is to define a new operation without introducing the modifications to an existing object structure.