When he saw an Israelite man being treated unfairly by an Egyptian, he defended the Israelite. He took revenge by killing the Egyptian.