We align humans via the propagation of morals and ethics, primarily through parenting and social pressure.

Also millions of years evolution.