A Nairobi court ordered the pilots of Kenya Airways to come to work on Wednesday and, for the moment, to cancel their strike.
The pilots have been refusing to work in protest over the suspension of contributions to their retirement fund by Kenya Airways management.
The judge, Anna Ngubuini Mwaure, said that they should resume work until another court has ruled on whether or not the strike is legal – a case brought by the airline.
Justice Mwaure also ruled that “Kenya Airways should allow the pilots to perform duties without harassment or intimidation”.
The airline had earlier said that the strike was costing it $2.5m (£2.2m) in lost revenue every day.