What is a Modal Dialog Window?

What exactly is a modal dialog window and when should you use it? Are there certain cases where you should refrain from using one?