This UML activity diagram for the library management system shows how users search, borrow, and return books. First, the user logs in and searches for some books. If the book is available, they can borrow it. Otherwise, we inform them that it is not available. Moreover, after borrowing it, the system updates its status. This UML activity diagram helps visualize user interactions. It aims to maintain efficient resource use and user satisfaction.