In the fifteenth century a distinction had been made at least between military and civil department of government, but by Bangkok times this differentiation had been lost. The military organizaqtion of the country included departments that also had civil function.