Desert locusts are primarily solitary but can switch to a swarming mode under certain environmental conditions, typically during periods of drought followed by rainfall. In swarms, they can travel thousands of kilometers, devouring crops and vegetation in their path, causing major agricultural and ecological damage.