The President of Syria is commander in chief of the Syrian armed forces, comprising some 400,000 troops upon mobilization. The military is a conscripted force; males serve in the military upon reaching the age of 18. The obligatory military service period is being decreased over time, in 2005 from two and a half years to two years, in 2008 to 21 months and in 2011 to year and a half. About 20,000 Syrian soldiers were deployed in Lebanon until 27 April 2005, when the last of Syria's troops left the country after three decades.