PurposeThe expansion of bike-sharing enterprises has led to a series of social problems, and due to the high breakage rate and high recycling cost of bike sharing, enterprises are reluctant to maintain them. Therefore, government regulation does play a leading role in maintaining bike sharing. This study’s purpose is to investigate how the government should regulate the bike-sharing enterprises that maintain bicycles.Design/methodology/approachFirstly, the authors assume that there is only one bike-sharing enterprise and establish a game model that the government regulates the enterprise. Furthermore, the authors extend the model to the case that there are two competing enterprises in the market. Finally, through numerical analysis, the influence of various factors on the government strategy and revenue is analyzed.FindingsThe authors find that the regulatory probability of two enterprises are regulated by the government is larger than that of one enterprise. When two bike-sharing enterprises compete without government regulation, both will choose the non-self-discipline strategy, thus falling into the Prisoner's Dilemma. If the government regulates them, then both enterprises will choose the self-discipline strategy. Finally, through numerical analysis, it is found that the self-discipline behavior of bike-sharing enterprises is related to the government regulatory probability, the cost of self-discipline, the probability of being reported and the penalties. Interestingly, the cost of government regulation will not affect the regulation probability of government.Practical implicationsThis research provides a theoretical reference for the government to make the regulation strategies of bike sharing and achieve the sustainable development of bike sharing.Originality/valueThis research provides a theoretical reference for the government to make the regulation strategies of bike sharing and achieve the sustainable development of bike sharing.