A modal is a user interface element that is displayed on top of the main content, usually as a pop-up window or a dialog box. It is used to capture the user's attention and prompt them for specific actions or information without navigating away from the current page.