The number 18 can be evenly divided by 1 2 3 6 9 and 18, with no remainder.
Since 18 cannot be divided by just 1 and 18, it is a composite number.