Objective. This study investigated the diagnostic value of color Doppler sonographically guided transthoracic needle aspiration in lung and mediastinal masses. Methods. B-mode and color Doppler sonographic images were obtained in 48 patients with mediastinal or peripheral pulmonary tumors. Color Doppler sonography was used to show the vascular structures before the transthoracic needle aspiration procedure. It was also used to locate the needle tip during the procedure by showing the twinkling sign. This maneuver was performed with motion of the inner stylet. Pathologic and microbiological examination of the aspirates was made. Results. Vascular structures were detected in 37 cases on color Doppler images and in 10 cases on B-mode images. Similarly, the needle tip was observed in 39 cases on color Doppler images but in only 9 cases on B-mode images. No complications were observed except partial pneumothorax in 2 cases. The method had sensitivity of 90.0%, specificity of 87.5%, a positive predictive value of 97.2%, a negative predictive value of 63.6%, and diagnostic accuracy of 89.6%. Conclusions. Color Doppler sonographically guided transthoracic needle aspiration is a safe diagnostic method in malignant lung tumors, especially peripheral tumors, because of its ability to differentiate vascular structures within a tumor before the transthoracic needle aspiration procedure. It provides additional information about the location of the needle tip.