The basic purpose of setting up a state is to maintain law and order and provide a framework for the peaceful coexistence of its citizens. A state is created to establish and enforce rules and regulations that ensure the safety, security, and well-being of its people. The state has the authority to use force, if necessary, to protect its citizens and maintain law and order.
While a state may also engage in promoting development and providing social facilities, these are secondary purposes that support its primary goal of maintaining law and order. Protecting foreign interests may also be a secondary purpose of some states, but this is not a universal purpose of all states.