This is still under debate by professionals. Some say that it is developed in childhood, due to neglect and abuse leading to a power complex. Others say that this is the way some people are born. The American Psychiatric Association does not call sociopathy a mental illness, because instead it is merely a problem with morality. A true sociopath has no conscience, despite their knowledge of society's view of right and wrong. Right and wrong only exist when they are the topic.
For example, to undermine their authority and control would be 'wrong' and to attack another for their personal gain may be 'right'.
Theoretically, a sociopath (by the definition of a person with no conscience) would be created by a parental lack of discipline and positive reinforcement. Consciences are made in children when they are disciplined for doing wrong, and encouraged and rewarded when they do the right thing.
Unfortunately, sociopaths are very intelligent, manipulative people. The best way to define them, due to no psychological health condition; is evil. If a person has no conscience then you cannot teach them to mingle with society.