To surprise someone greatly; act against their expectations. It can be used in both the positive and negative meaning; e.g.:
"The scientists were astonished by the results of their experiment. It was a real breakthrough!"
"It astonishes me that he could treat his wife this way. He used to be a real gentleman."