Take to one’s heels

To run away.

The young boys took to their heels when the man came out of the building.