The purpose of using a modal button is to provide a non-intrusive way to display additional content or interactions without navigating to a different page or disrupting the user's current workflow. Modal buttons are commonly used in web and mobile applications for various purposes, such as displaying login forms, settings, image galleries, alerts, or confirmation dialogs.