The government generates employment through direct and indirect efforts. The government makes direct efforts by employing people in various departments for administrative purposes. It runs various enterprises and when they result in increased output of goods and services, they lead to further increase in employment.
The various private enterprises that are linked to the government enterprises might also benefit from increased output of these enterprises. This, increase in their output leads to employment too. In this way, the government generates employment indirectly.