Humor is important in writing because it can help to engage the reader, add levity to a situation, and add dimension to a character. When used effectively, humor can also help to build rapport between the writer and the reader.