Homophones are words that sound alike, may have the same spelling, but differ in meaning.
Imminent means impending, forthcoming, about to happen, etc.
Eminent means well-known, renowned, notable, outstanding, reputed, famous, prominent, etc.
The soldiers were unaware of the imminent danger of being ambushed.
He was an eminent member of the society.
He is an eminent surgeon.