Method and arrangement for connecting an AC electric motor (M1, M2, . . . MN) to an AC electricity network (L) in a system which comprises a frequency converter (FC), with which the motor is started, and contactors (S11, S12, S21, S22, SN1, SN2), in which method the supply source is changed by means of the contactors from the frequency converter to a direct network supply, in which method the frequency converter is stopped before changing the supply source, and in which method in connection with changing the supply source the control of the contactors is started before stopping the frequency converter.