Transport is the main source of environmental pollution. The ecology of transport determines the extent of the negative impact on nature and the environment. The authors present a block diagram of the interaction between the interests of public security and the economic entity. The mechanism of interaction between public and commercial interests of a transport enterprise is considered from the standpoint of payment for nature management. The article proposes a scheme for ensuring the quality and efficiency of the railway transport enterprise. The influence of external and internal factors on the quality and efficiency of the transport enterprise is described.