The distribution of wealth

The most acute problems of humanity are related with distribution of wealth. A society poorer in average but with the available wealth decently distributed will have less conflict than another society richer in average but with a big gap between the wealthier and the poorer.

Why this gap occurs so frequently? How can be solved?