Rear Its Ugly Head (said of a problem or something unpleasant)

What does the idiom “Rear Its Ugly Head (said of a problem or something unpleasant)” mean?

Definition:

Appear, be revealed

For example:

“We were almost finished with the spreadsheet when the problem of the write-offs reared its ugly head.”