Modal dialogs can enhance usability by focusing attention on a specific message that requires a user action to continue.
An accessible modal dialog is one where keyboard focus is managed properly, and the correct information is exposed to screen readers. HTML and WAI-ARIA can be used to provide the necessary semantic information, CSS the appearance and Javascript the behavior.