A decision tree is constructed by splitting a dataset into subsets based on the value of input features. Each node in the tree represents a feature, and each branch represents a decision rule. The leaves of the tree represent possible outcomes or classes. For example, in toxicology, a decision tree might help determine whether a chemical is toxic or non-toxic based on its structural properties and biological interactions.