Every Swiss man is required to serve in the military or in the alternative civilian service. In most cases, the military service obligation applies from age 18 to 30.
Note
The earliest you can apply for civilian service is after you have been found fit for military service as part of the recruitment process.