But the Arab commanders learned that when an epidemic struck it was safest to remove their troops from the city to isolated highland or desert locations until the danger had passed. Similarly, the Umayyad Caliphs would retreat to the desert palaces and live like Bedouins during plague season.[71]