An action on permutations is introduced, which preserves the numbers of their ascents and descents. Periodicity of permutations under the action is investigated and its application is given to proofs of some congruence relationsmodulo a prime for Eulerian numbers.