"Interference by foreign militaries is very dangerous and deepens the crisis," Rouhani said, during a phone call with French President Francois Hollande.
He insisted the "solution to Yemen's problems is not military," the presidency said.
Saudi Arabia's air strikes on Shiite rebels in Yemen triggered fury from Iran Thursday, with officials warning the military action threatened to spill over into other countries.
During a separate telephone conversation with British Prime Minister David Cameron, Rouhani referred to "this morning's military aggression and condemned all military intervention in the internal affairs of independent nations," his website said.