The Lord created Pharoah and used his pride and SelfWill, his carnality to demonstrate His power.

Pharoah could have repented, but he refused.