For the 11 types of most frequently occurring supersecondary motifs, we used a new method--the vector projection method--to predict a protein's supersecondary structure. In a training set of peptides and a test set of peptides we obtained a satisfactory result, with a prediction accuracy of about 90%. The high prediction accuracy indicates that this method is reasonable for predicting the folding motifs of proteins. This work provides insight into the problem of predicting a protein's local structure accurately, and is of particular value in protein modeling, prediction, and molecule design.