Histological grading of pathological images is used to determine level of malignancy of cancerous tissues. This is a very important task in prostate cancer prognosis, since it is used for treatment planning. If infection of cancer is not rejected by non-invasive diagnostic techniques like magnetic resonance imaging, computed tomography scan, and ultrasound, then biopsy specimens of tissue are tested. For prostate, biopsied tissue is stained by hematoxyline and eosine method and viewed by pathologists under a microscope to determine its histological grade. Human grading is very subjective due to interobserver and intraobserver variations and in some cases difficult and time-consuming. Thus, an automatic and repeatable technique is needed for grading. Gleason grading system is the most common method for histological grading of prostate tissue samples. According to this system, each cancerous specimen is assigned one of five grades. Although some automatic systems have been developed for analysis of pathological images, Gleason grading has not yet been automated; the goal of this research is to automate it. To this end, we calculate energy and entropy features of multiwavelet coefficients of the image. Then, we select most discriminative features by simulated annealing and use a k-nearest neighbor classifier to classify each image to appropriate grade (class). The leaving-one-out technique is used for error rate estimation. We also obtain the results using features extracted by wavelet packets and co-occurrence matrices and compare them with the multiwavelet method. Experimental results show the superiority of the multiwavelet transforms compared with other techniques. For multiwavelets, critically sampled preprocessing outperforms repeated-row preprocessing and has less sensitivity to noise for second level of decomposition. The first level of decomposition is very sensitive to noise and, thus, should not be used for feature extraction. The best multiwavelet method grades prostate pathological images correctly 97% of the time.