The phrase "drive mad" can be replaced by a variety of synonyms depending on the context. "Irritate" and "annoy" are two common synonyms that can be used interchangeably with "drive mad." If the situation is particularly frustrating, "exasperate" or "enrage" might be a more appropriate choice. "Grate on" and "get on one's nerves" are also useful synonyms for "drive mad", especially when used to describe a persistent annoyance. Lastly, "infuriate" or "anger" can be used when referring to a situation that causes intense anger and frustration. In short, there are plenty of synonyms available to replace "drive mad," each with its own distinct connotation.