Diaphragmatic dysfunction is often underdiagnosed and is among the risk factors for failed weaning. The purpose of this study was to determine the prevalence of diaphragmatic dysfunction diagnosed by B-mode ultrasonography and to determine whether prolonged weaning subjects with diaphragmatic dysfunction have increased duration of mechanical ventilation compared with those without diaphragmatic dysfunction.