RNAfold uses the principles of thermodynamics to predict RNA secondary structures. It considers the free energy minimization approach to find the most stable structure. The tool generates a dot-bracket notation and a graphical representation of the predicted RNA structure, which can be used for further analysis.