The two phases of data mining are the exploration phase and the modeling phase. In the exploration phase, data is gathered and analyzed in order to identify patterns and insights about the data. In the modeling phase, a model is created based on the insights gained in the exploration phase and used to make predictions or take action.