To leave hastily in the face of opposition. Example: When they saw the police coming, they beat a retreat.