In most countries, what is the main responsibility of the government to create?

2 answers

Probably laws and an effective way of enforcing them.
John Locke's works are interesting to read. Here's a webpage that explains sections of his writings:
http://www.blupete.com/Literature/Biographies/Philosophy/Locke.htm#Raison

'The great and chief end, therefore, of men's uniting into commonwealths, and putting themselves under government, is the preservation of their property.' He qualifies his theory of a Social Contract, Compact, or Covenant, by pointing out that 'men when they enter into society give up ... liberty of a kind; yet it being only with an intention in every one the better to preserve himself, his liberty and property,' the power conferred 'can never be supposed to extend farther than the common good, but is obliged to secure everyone's property,' ...

His view, basically, is that humans form governments by mutual agreements, giving up some natural liberties in return for protection.

Here's more about Locke; be sure to go into the External Links and further references at the bottom of the page.
http://en.wikipedia.org/wiki/John_locke
and
http://en.wikipedia.org/wiki/Two_Treatises_of_Government

It's a very interesting topic.

=)