Background. Delayed diagnosis of tuberculosis (TB) and drug-resistant TB are major challenges of TB control in Thailand. This study assessed the practicality of the Xpert MTB/RIF assay in a real-life setting with high prevalence of human immunodeficiency virus (HIV) infection and pulmonary tuberculosis (PTB).Methods. This prospective study was conducted at 3 large tertiary care hospitals. Patients who had suspected PTB were enrolled into the study. Expectorated sputum samples were sent for staining, mycobacterial culture, and Xpert MTB/RIF.Results. Four hundred ninety-four patients were enrolled. From 355 cases with final diagnosis of PTB, 263 (71.8%) had definite diagnosis and 92 cases had probable diagnosis. Among TB culture-positive cases, Xpert MTB/RIF had 100% and 81% sensitivity in sputum smear-positive and smear-negative groups, respectively. The specificity was 95.7%. The sensitivity and positive predictive value of Xpert MTB/RIF in culture-negative but clinically diagnosed PTB was 37.8% and 83.8%, respectively. Centrifugation was required in 59% cases with scanty sputum. Five cases were false-positive by Xpert MTB/RIF in patients with nontuberculous mycobacteria, old PTB scar, and immune reconstitution syndrome. Discordant rifampicin susceptibility results of Xpert MTB/RIF and mycobacteria growth indicator tube (MGIT) were confirmed by using rpoB gene sequencing, which raised the sensitivity of Xpert MTB/RIF in detecting rifampicin resistance to 93.8%.Conclusions. Xpert MTB/RIF is an effective tool in diagnosing PTB but will be more cost-effective for sputum-negative patients and in settings with high prevalence of rifampicin resistance. Early diagnosis of TB results in early treatment and implementation of strategies to limit spreading of TB. Sputum centrifugation may increase the yield of Xpert MTB/RIF.