Answer
Rats find ammonia's strong, pungent smell overwhelming and irritating to their sensitive respiratory systems. The odor mimics predator urine, triggering their natural avoidance instincts. Many people use ammonia as a rat deterrent, though its effectiveness is temporary as the smell dissipates quickly outdoors.