How was Canada involved in World War I?

Canada became involved in world war 1 because Canada was one of the British empire's colony and were allies with them.